summaryrefslogtreecommitdiffstats
path: root/sys/net/pf_ioctl.c
diff options
context:
space:
mode:
authorsashan <sashan@openbsd.org>2015-07-19 05:48:11 +0000
committersashan <sashan@openbsd.org>2015-07-19 05:48:11 +0000
commit454162ba1ce7d347c01681e1a6aecc8433d5cb80 (patch)
tree8a9f3c2ff01b1fb01a7a996b86591d6f565566fe /sys/net/pf_ioctl.c
parentNow that it is safe to invoke X509_STORE_CTX_cleanup() if X509_STORE_CTX_init() (diff)
downloadwireguard-openbsd-454162ba1ce7d347c01681e1a6aecc8433d5cb80.tar.xz
wireguard-openbsd-454162ba1ce7d347c01681e1a6aecc8433d5cb80.zip
unsinged variables should not be compared to be leq than 0 (unsigned a <= 0)
ok mcbride@
Diffstat (limited to 'sys/net/pf_ioctl.c')
-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 3e183ea4799..a59da8f195d 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.286 2015/07/18 19:19:00 sashan Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.287 2015/07/19 05:48:12 sashan Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -249,7 +249,7 @@ void
pf_rm_rule(struct pf_rulequeue *rulequeue, struct pf_rule *rule)
{
if (rulequeue != NULL) {
- if (rule->states_cur <= 0 && rule->src_nodes <= 0) {
+ if (rule->states_cur == 0 && rule->src_nodes == 0) {
/*
* XXX - we need to remove the table *before* detaching
* the rule to make sure the table code does not delete