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

MFC after:	1 week
This commit is contained in:
tuexen 2015-09-04 09:22:16 +00:00
parent 0b865fd81b
commit a66dd7d374

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