summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-06-27 04:39:30 +0000
committerangelos <angelos@openbsd.org>2001-06-27 04:39:30 +0000
commitec3fb539297407364c3c84bcb12ea0b0cee5f0dc (patch)
treec34ced969aab863b928d2914c24aa878623d6ef4
parentAlso link acquire state to the relevant IPsec policy. (diff)
downloadwireguard-openbsd-ec3fb539297407364c3c84bcb12ea0b0cee5f0dc.tar.xz
wireguard-openbsd-ec3fb539297407364c3c84bcb12ea0b0cee5f0dc.zip
Initialize acquire state list in newly allocated policy.
-rw-r--r--sys/net/pfkeyv2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pfkeyv2.c b/sys/net/pfkeyv2.c
index f0c43398ffc..283165e4239 100644
--- a/sys/net/pfkeyv2.c
+++ b/sys/net/pfkeyv2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2.c,v 1.71 2001/06/27 01:34:06 angelos Exp $ */
+/* $OpenBSD: pfkeyv2.c,v 1.72 2001/06/27 04:39:30 angelos Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
@@ -1517,6 +1517,8 @@ pfkeyv2_send(struct socket *socket, void *message, int len)
goto ret;
}
+ TAILQ_INIT(&ipo->ipo_acquires);
+
bzero(ipo, sizeof(struct ipsec_policy));
/* Finish initialization of SPD entry */