Date: Mon, 24 Aug 2020 08:37:30 +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: r364627 - stable/12/sys/netinet Message-ID: <202008240837.07O8bUGg077673@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008240837.07O8bUGg077673>