Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 2016 19:05:30 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r295766 - head/sys/netpfil/ipfw
Message-ID:  <201602181905.u1IJ5UwF074811@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602181905.u1IJ5UwF074811>