diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index c31f557f776e..8a4a65e48b58 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -2667,6 +2667,9 @@ sctp_notify_assoc_change(uint16_t state, struct sctp_tcb *stcb, #endif + if (stcb == NULL) { + return; + } if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVASSOCEVNT)) { notif_len = sizeof(struct sctp_assoc_change); if (abort != NULL) {