summaryrefslogtreecommitdiffstats
path: root/sys/netpfil
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2016-02-18 19:05:30 +0000
committerglebius <glebius@FreeBSD.org>2016-02-18 19:05:30 +0000
commitf75e66a4bd8d447da9d5d512a880357967771192 (patch)
treeb3664fc617b0235c9ba26aaf17cddfdd681fab8c /sys/netpfil
parent3ae05646df771e48ff767b169804fe90db3254a0 (diff)
downloadFreeBSD-src-f75e66a4bd8d447da9d5d512a880357967771192.zip
FreeBSD-src-f75e66a4bd8d447da9d5d512a880357967771192.tar.gz
Fix obvious typo, that lead to incorrect sorting.
Found by: PVS-Studio
Diffstat (limited to 'sys/netpfil')
-rw-r--r--sys/netpfil/ipfw/ip_fw_sockopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_sockopt.c b/sys/netpfil/ipfw/ip_fw_sockopt.c
index 070aed3..25ac16e 100644
--- a/sys/netpfil/ipfw/ip_fw_sockopt.c
+++ b/sys/netpfil/ipfw/ip_fw_sockopt.c
@@ -2890,7 +2890,7 @@ compare_sh(const void *_a, const void *_b)
if ((uintptr_t)a->handler < (uintptr_t)b->handler)
return (-1);
- else if ((uintptr_t)b->handler > (uintptr_t)b->handler)
+ else if ((uintptr_t)a->handler > (uintptr_t)b->handler)
return (1);
return (0);
OpenPOWER on IntegriCloud