summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaddy <naddy@openbsd.org>2006-06-12 19:17:51 +0000
committernaddy <naddy@openbsd.org>2006-06-12 19:17:51 +0000
commit4b7bcba6ab63ec8ce8366d9d72eff03e371b5c75 (patch)
treef62548955838510dcb70f39dfafbb80fe4c30b3a
parentUse the non-generic SEGSHIFT value in the 020/030 specific codepath. (diff)
downloadwireguard-openbsd-4b7bcba6ab63ec8ce8366d9d72eff03e371b5c75.tar.xz
wireguard-openbsd-4b7bcba6ab63ec8ce8366d9d72eff03e371b5c75.zip
Fix a typo that prevented ipsecctl -ss from showing authentication
information for AH SAs. ok markus@, hshoexer@
-rw-r--r--sbin/ipsecctl/pfkdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipsecctl/pfkdump.c b/sbin/ipsecctl/pfkdump.c
index f4e3f92e6fb..b067c411582 100644
--- a/sbin/ipsecctl/pfkdump.c
+++ b/sbin/ipsecctl/pfkdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkdump.c,v 1.18 2006/06/02 12:29:43 markus Exp $ */
+/* $OpenBSD: pfkdump.c,v 1.19 2006/06/12 19:17:51 naddy Exp $ */
/*
* Copyright (c) 2003 Markus Friedl. All rights reserved.
@@ -647,7 +647,7 @@ pfkey_print_sa(struct sadb_msg *msg, int opts)
bzero(&authkey, sizeof authkey);
parse_key(extensions[SADB_EXT_KEY_AUTH], &authkey);
r.authkey = &authkey;
- } else if (sa->sadb_sa_encrypt || sa->sadb_sa_encrypt) {
+ } else if (sa->sadb_sa_encrypt || sa->sadb_sa_auth) {
bzero(&xfs, sizeof xfs);
r.xfs = &xfs;
if (sa->sadb_sa_encrypt) {