summaryrefslogtreecommitdiffstats
path: root/lib/libipsec
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-03-09 14:57:16 +0000
committershin <shin@FreeBSD.org>2000-03-09 14:57:16 +0000
commit23a1d7aeede4493a8349d528992687a9a1974f0d (patch)
tree567e4b84d196c5bda0ab47a9c2833316cae0416e /lib/libipsec
parenteeb8008dd35800b119535b53dc4607fda698f4b2 (diff)
downloadFreeBSD-src-23a1d7aeede4493a8349d528992687a9a1974f0d.zip
FreeBSD-src-23a1d7aeede4493a8349d528992687a9a1974f0d.tar.gz
Initialize mbuf pointer at getting ipsec policy.
Without this, kernel will panic at getsockopt() of IPSEC_POLICY. Also make compilable libipsec/test-policy.c which tries getsockopt() of IPSEC_POLICY. Approved by: jkh Submitted by: sakane@kame.net
Diffstat (limited to 'lib/libipsec')
-rw-r--r--lib/libipsec/test-policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libipsec/test-policy.c b/lib/libipsec/test-policy.c
index 3b9d18c..c8fd727 100644
--- a/lib/libipsec/test-policy.c
+++ b/lib/libipsec/test-policy.c
@@ -35,7 +35,7 @@
#include <netinet/in.h>
#include <netinet6/in6.h>
-#include <netkey/keyv2.h>
+#include <net/pfkeyv2.h>
#include <netkey/key_debug.h>
#include <netinet6/ipsec.h>
OpenPOWER on IntegriCloud