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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to