summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2016-01-16 14:50:43 +0000
committertuexen <tuexen@FreeBSD.org>2016-01-16 14:50:43 +0000
commit6ec65b594f8f16e3dee43cc8c31bf6e5d7c15506 (patch)
tree727f65b9bf25247867e8124f12bca2265524b5bb /sys/netinet
parentf7eeeeafb482a812fb0f32fdd3e47e90bfe36deb (diff)
downloadFreeBSD-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.c3
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) {
OpenPOWER on IntegriCloud