Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 2020 20:23:38 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r361479 - stable/11/sys/netinet
Message-ID:  <202005252023.04PKNcRj032698@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Mon May 25 20:23:38 2020
New Revision: 361479
URL: https://svnweb.freebsd.org/changeset/base/361479

Log:
  MFC r361226: Cleanup
  
  Don't check an unsigned variable for being negative.

Modified:
  stable/11/sys/netinet/sctp_usrreq.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/11/sys/netinet/sctp_usrreq.c	Mon May 25 20:21:39 2020	(r361478)
+++ stable/11/sys/netinet/sctp_usrreq.c	Mon May 25 20:23:38 2020	(r361479)
@@ -1028,7 +1028,7 @@ sctp_fill_up_addresses_vrf(struct sctp_inpcb *inp,
 	struct sctp_vrf *vrf;
 
 	actual = 0;
-	if (limit <= 0)
+	if (limit == 0)
 		return (actual);
 
 	if (stcb) {



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