summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkjc <kjc@openbsd.org>2004-05-03 07:51:59 +0000
committerkjc <kjc@openbsd.org>2004-05-03 07:51:59 +0000
commit52e24287cb1a245604dda0b2b3b67b2a5353e144 (patch)
tree489a0a28fa1bfee20981ec756eb19cb123d035cf
parentprotecing with NONE means we must drop the wired count. (diff)
downloadwireguard-openbsd-52e24287cb1a245604dda0b2b3b67b2a5353e144.tar.xz
wireguard-openbsd-52e24287cb1a245604dda0b2b3b67b2a5353e144.zip
fix a stupid mistake in my previous commit.
"if (error == 0)" should be "if (error != 0)".
-rw-r--r--sys/net/pf_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c
index b95568764d0..e554039d3c9 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.117 2004/04/28 02:43:09 pb Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.118 2004/05/03 07:51:59 kjc Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -706,7 +706,7 @@ pf_commit_altq(u_int32_t ticket)
error = altq_pfattach(altq);
if (error == 0 && pf_altq_running)
error = pf_enable_altq(altq);
- if (error == 0) {
+ if (error != 0) {
splx(s);
return (error);
}