svn commit: r364592 - stable/12/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sun Aug 23 23:16:14 UTC 2020
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) {
More information about the svn-src-all
mailing list