summaryrefslogtreecommitdiff
path: root/sys/net/pfkeyv2_convert.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2005-05-24 02:30:04 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2005-05-24 02:30:04 +0000
commit16cf272d570a15a6d09a6b724b312f101a26ff74 (patch)
treea0c5b07a1713fa64bdcf5d3ec637d82ee93b4613 /sys/net/pfkeyv2_convert.c
parent7bcec1f4132cd47e9bfebd8952a49bdaf345b13c (diff)
Better SA state reporting. markus@, hshoexer@ ok.
Diffstat (limited to 'sys/net/pfkeyv2_convert.c')
-rw-r--r--sys/net/pfkeyv2_convert.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pfkeyv2_convert.c b/sys/net/pfkeyv2_convert.c
index 54a44f13765..0c7f1963414 100644
--- a/sys/net/pfkeyv2_convert.c
+++ b/sys/net/pfkeyv2_convert.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2_convert.c,v 1.22 2005/05/10 13:42:11 markus Exp $ */
+/* $OpenBSD: pfkeyv2_convert.c,v 1.23 2005/05/24 02:30:03 ho Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@keromytis.org)
*
@@ -163,6 +163,8 @@ export_sa(void **p, struct tdb *tdb)
if (tdb->tdb_flags & TDBF_INVALID)
sadb_sa->sadb_sa_state = SADB_SASTATE_LARVAL;
+ else
+ sadb_sa->sadb_sa_state = SADB_SASTATE_MATURE;
if (tdb->tdb_sproto == IPPROTO_IPCOMP &&
tdb->tdb_compalgxform != NULL) {