diff options
author | glebius <glebius@FreeBSD.org> | 2016-02-18 19:05:30 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2016-02-18 19:05:30 +0000 |
commit | f75e66a4bd8d447da9d5d512a880357967771192 (patch) | |
tree | b3664fc617b0235c9ba26aaf17cddfdd681fab8c /sys/netpfil | |
parent | 3ae05646df771e48ff767b169804fe90db3254a0 (diff) | |
download | FreeBSD-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.c | 2 |
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); |