Date: Fri, 18 Feb 2022 16:25:29 GMT From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: fd0d53f85c9f - main - sctp: improve robustness Message-ID: <202202181625.21IGPTnK099556@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=fd0d53f85c9f5d1a31367eb1b8b5e74cc83afd52 commit fd0d53f85c9f5d1a31367eb1b8b5e74cc83afd52 Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2022-02-18 13:30:07 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2022-02-18 13:30:07 +0000 sctp: improve robustness MFC after: 3 days --- sys/netinet/sctp_os_bsd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h index 7d5cef6d5f09..e8d08588fbfb 100644 --- a/sys/netinet/sctp_os_bsd.h +++ b/sys/netinet/sctp_os_bsd.h @@ -313,7 +313,7 @@ typedef struct callout sctp_os_timer_t; /*************************/ /* MTU */ /*************************/ -#define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index) ((struct ifnet *)ifn)->if_mtu +#define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index) ((ifn != NULL) ? ((struct ifnet *)ifn)->if_mtu : 0) #define SCTP_GATHER_MTU_FROM_ROUTE(sctp_ifa, sa, nh) ((uint32_t)((nh != NULL) ? nh->nh_mtu : 0)) /*************************/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202181625.21IGPTnK099556>