svn commit: r364627 - stable/12/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Mon Aug 24 08:37:30 UTC 2020
Author: tuexen
Date: Mon Aug 24 08:37:29 2020
New Revision: 364627
URL: https://svnweb.freebsd.org/changeset/base/364627
Log:
MFC r362813:
Fix a bug introduced in https://svnweb.freebsd.org/changeset/base/362173
Modified:
stable/12/sys/netinet/sctputil.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/netinet/sctputil.c
==============================================================================
--- stable/12/sys/netinet/sctputil.c Mon Aug 24 08:35:13 2020 (r364626)
+++ stable/12/sys/netinet/sctputil.c Mon Aug 24 08:37:29 2020 (r364627)
@@ -5238,7 +5238,11 @@ sctp_find_ifa_in_ep(struct sctp_inpcb *inp, struct soc
if (holds_lock == 0) {
SCTP_INP_RUNLOCK(inp);
}
- return (laddr->ifa);
+ if (laddr != NULL) {
+ return (laddr->ifa);
+ } else {
+ return (NULL);
+ }
}
uint32_t
More information about the svn-src-all
mailing list