diff options
author | tuexen <tuexen@FreeBSD.org> | 2016-01-16 14:50:43 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2016-01-16 14:50:43 +0000 |
commit | 6ec65b594f8f16e3dee43cc8c31bf6e5d7c15506 (patch) | |
tree | 727f65b9bf25247867e8124f12bca2265524b5bb /sys/netinet | |
parent | f7eeeeafb482a812fb0f32fdd3e47e90bfe36deb (diff) | |
download | FreeBSD-src-6ec65b594f8f16e3dee43cc8c31bf6e5d7c15506.zip FreeBSD-src-6ec65b594f8f16e3dee43cc8c31bf6e5d7c15506.tar.gz |
MFC r287456:
Add a NULL pointer check to silence the clang code analyzer.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/sctputil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index c31f557..8a4a65e 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) { |