summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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--;
}
}