svn commit: r361226 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Mon May 18 19:35:46 UTC 2020
Author: tuexen
Date: Mon May 18 19:35:46 2020
New Revision: 361226
URL: https://svnweb.freebsd.org/changeset/base/361226
Log:
Don't check an unsigned variable for being negative.
MFC after: 3 days.
Modified:
head/sys/netinet/sctp_usrreq.c
Modified: head/sys/netinet/sctp_usrreq.c
==============================================================================
--- head/sys/netinet/sctp_usrreq.c Mon May 18 19:23:01 2020 (r361225)
+++ head/sys/netinet/sctp_usrreq.c Mon May 18 19:35:46 2020 (r361226)
@@ -1042,7 +1042,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