svn commit: r295766 - head/sys/netpfil/ipfw
Gleb Smirnoff
glebius at FreeBSD.org
Thu Feb 18 19:05:32 UTC 2016
Author: glebius
Date: Thu Feb 18 19:05:30 2016
New Revision: 295766
URL: https://svnweb.freebsd.org/changeset/base/295766
Log:
Fix obvious typo, that lead to incorrect sorting.
Found by: PVS-Studio
Modified:
head/sys/netpfil/ipfw/ip_fw_sockopt.c
Modified: head/sys/netpfil/ipfw/ip_fw_sockopt.c
==============================================================================
--- head/sys/netpfil/ipfw/ip_fw_sockopt.c Thu Feb 18 18:50:03 2016 (r295765)
+++ head/sys/netpfil/ipfw/ip_fw_sockopt.c Thu Feb 18 19:05:30 2016 (r295766)
@@ -2890,7 +2890,7 @@ compare_sh(const void *_a, const void *_
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);
More information about the svn-src-head
mailing list