Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Aug 2020 23:16:14 +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-12@freebsd.org
Subject:   svn commit: r364592 - stable/12/sys/netinet
Message-ID:  <202008232316.07NNGEfk030433@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Sun Aug 23 23:16:14 2020
New Revision: 364592
URL: https://svnweb.freebsd.org/changeset/base/364592

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

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

Modified: stable/12/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/12/sys/netinet/sctp_usrreq.c	Sun Aug 23 23:14:47 2020	(r364591)
+++ stable/12/sys/netinet/sctp_usrreq.c	Sun Aug 23 23:16:14 2020	(r364592)
@@ -1023,7 +1023,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?202008232316.07NNGEfk030433>