summaryrefslogtreecommitdiff
path: root/sys/net/pfkeyv2.c
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2006-05-06 17:43:48 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2006-05-06 17:43:48 +0000
commit1b31e61641da8e617823a4d005e984a0d76e4594 (patch)
tree300492acbc87ab66f12bc55ed760497da3a1dcd9 /sys/net/pfkeyv2.c
parent6ce108213442c0b6874315ec4222bee48afb0566 (diff)
Fix bracketing messed up in KNF commit 1.86, allows sasyncd to reliably
set up pfkey promiscuous mode. Diff from Nathanael <list-openbsd-tech at polymorpheus dot com>
Diffstat (limited to 'sys/net/pfkeyv2.c')
-rw-r--r--sys/net/pfkeyv2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/pfkeyv2.c b/sys/net/pfkeyv2.c
index 0d8dd738eb0..ff9252293b2 100644
--- a/sys/net/pfkeyv2.c
+++ b/sys/net/pfkeyv2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2.c,v 1.109 2005/12/06 14:25:21 markus Exp $ */
+/* $OpenBSD: pfkeyv2.c,v 1.110 2006/05/06 17:43:47 mcbride Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
@@ -1733,11 +1733,11 @@ pfkeyv2_send(struct socket *socket, void *message, int len)
pfkeyv2_socket->flags |=
PFKEYV2_SOCKETFLAGS_PROMISC;
npromisc++;
+ } else {
+ pfkeyv2_socket->flags &=
+ ~PFKEYV2_SOCKETFLAGS_PROMISC;
+ npromisc--;
}
- } else {
- pfkeyv2_socket->flags &=
- ~PFKEYV2_SOCKETFLAGS_PROMISC;
- npromisc--;
}
}