Add a NULL pointer check to silence the clang code analyzer.

MFC after:	1 week
This commit is contained in:
Michael Tuexen 2015-09-04 09:22:16 +00:00
parent bd236ba5c0
commit 59713bbf27

View File

@ -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) {