1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

sctp: improve robustness

MFC after:	3 days
This commit is contained in:
Michael Tuexen 2022-02-18 14:30:07 +01:00
parent 274a0e4a8d
commit fd0d53f85c

View File

@ -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))
/*************************/