Date: Sat, 16 Jan 2016 14:50:43 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r294153 - stable/10/sys/netinet Message-ID: <201601161450.u0GEohO8094007@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Sat Jan 16 14:50:43 2016 New Revision: 294153 URL: https://svnweb.freebsd.org/changeset/base/294153 Log: MFC r287456: Add a NULL pointer check to silence the clang code analyzer. Modified: stable/10/sys/netinet/sctputil.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/netinet/sctputil.c ============================================================================== --- stable/10/sys/netinet/sctputil.c Sat Jan 16 14:48:54 2016 (r294152) +++ stable/10/sys/netinet/sctputil.c Sat Jan 16 14:50:43 2016 (r294153) @@ -2667,6 +2667,9 @@ sctp_notify_assoc_change(uint16_t state, #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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601161450.u0GEohO8094007>