diff options
author | 2002-06-07 01:51:54 +0000 | |
---|---|---|
committer | 2002-06-07 01:51:54 +0000 | |
commit | c4ff31446e5c7d1c503919a03eb6809c48e74bdb (patch) | |
tree | 1f22b23e328cbaf8de987c827037608e423fd0c2 | |
parent | tyop (diff) | |
download | wireguard-openbsd-c4ff31446e5c7d1c503919a03eb6809c48e74bdb.tar.xz wireguard-openbsd-c4ff31446e5c7d1c503919a03eb6809c48e74bdb.zip |
While src is rarely NULL, ssrc might be. Fixes PR#2721.
-rw-r--r-- | sys/net/pfkeyv2_convert.c | 4 |
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)); |