svn commit: r361479 - stable/11/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Mon May 25 20:23:39 UTC 2020


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) {


More information about the svn-src-all mailing list