diff options
author | 2004-05-03 07:51:59 +0000 | |
---|---|---|
committer | 2004-05-03 07:51:59 +0000 | |
commit | 52e24287cb1a245604dda0b2b3b67b2a5353e144 (patch) | |
tree | 489a0a28fa1bfee20981ec756eb19cb123d035cf | |
parent | protecing with NONE means we must drop the wired count. (diff) | |
download | wireguard-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.c | 4 |
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); } |