summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2002-06-07 01:51:55 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2002-06-07 01:51:55 +0000
commit4d89ee4eeb79b044af853b8b1bce3a9560f79d2b (patch)
treeaa76db962a0403d1ff70ab4faea95e36f818e8bf /sys
parent6a4ad1ea4b41fdc4f1872dd44d5f429b16904c88 (diff)
While src is rarely NULL, ssrc might be. Fixes PR#2721.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pfkeyv2_convert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pfkeyv2_convert.c b/sys/net/pfkeyv2_convert.c
index 2254b60e25c..c891c336d30 100644
--- a/sys/net/pfkeyv2_convert.c
+++ b/sys/net/pfkeyv2_convert.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2_convert.c,v 1.8 2002/05/31 01:38:04 angelos Exp $ */
+/* $OpenBSD: pfkeyv2_convert.c,v 1.9 2002/06/07 01:51:54 ho Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@keromytis.org)
*
@@ -397,7 +397,7 @@ import_flow(struct sockaddr_encap *flow, struct sockaddr_encap *flowmask,
union sockaddr_union *srcmask = (union sockaddr_union *)(ssrcmask + 1);
union sockaddr_union *dstmask = (union sockaddr_union *)(ddstmask + 1);
- if (src == NULL)
+ if (ssrc == NULL)
return; /* There wasn't any information to begin with. */
bzero(flow, sizeof(*flow));