summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2004-01-13 05:32:12 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2004-01-13 05:32:12 +0000
commit7495684acaaeafd590fcf067af9a1ae8ad65f12c (patch)
treedac316c8fc032868d88ef10257d4689695c2fe53
parent2333afc31e5dff2360112f4ae0be1b044d0acdce (diff)
Notes
-rw-r--r--sys/netinet6/ipsec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet6/ipsec.c b/sys/netinet6/ipsec.c
index 46ecaa4766c8..917fa33bb321 100644
--- a/sys/netinet6/ipsec.c
+++ b/sys/netinet6/ipsec.c
@@ -1311,8 +1311,11 @@ ipsec_deepcopy_policy(src)
struct ipsecrequest *r;
struct secpolicy *dst;
+ if (src == NULL)
+ return NULL;
+
dst = key_newsp(0);
- if (src == NULL || dst == NULL)
+ if (dst == NULL)
return NULL;
/*