Add a NULL pointer check to silence the clang code analyzer.
MFC after: 1 week
This commit is contained in:
parent
bd236ba5c0
commit
59713bbf27
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user