diff options
author | tuexen <tuexen@FreeBSD.org> | 2012-05-06 14:50:54 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2012-05-06 14:50:54 +0000 |
commit | dfb886ebd021277a42ddc8b23893b59ca6ade3e7 (patch) | |
tree | aef4bf889cb0045ffa258d4fdf90ea8e43f6061d /sys/netinet/sctputil.c | |
parent | b5cb1ff1a3eca6a245b6dcff30ebdd89c008f23a (diff) | |
download | FreeBSD-src-dfb886ebd021277a42ddc8b23893b59ca6ade3e7.zip FreeBSD-src-dfb886ebd021277a42ddc8b23893b59ca6ade3e7.tar.gz |
Address clang warnings.
MFC after: 3 days
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r-- | sys/netinet/sctputil.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 0587b37..dc63e55 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -3288,7 +3288,8 @@ sctp_notify_stream_reset_add(struct sctp_tcb *stcb, uint16_t numberin, uint16_t struct sctp_stream_change_event *stradd; int len; - if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_STREAM_CHANGEEVNT)) { + if ((stcb == NULL) || + (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_STREAM_CHANGEEVNT))) { /* event not enabled */ return; } @@ -3349,7 +3350,8 @@ sctp_notify_stream_reset_tsn(struct sctp_tcb *stcb, uint32_t sending_tsn, uint32 struct sctp_assoc_reset_event *strasoc; int len; - if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_ASSOC_RESETEVNT)) { + if ((stcb == NULL) || + (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_ASSOC_RESETEVNT))) { /* event not enabled */ return; } @@ -3407,7 +3409,8 @@ sctp_notify_stream_reset(struct sctp_tcb *stcb, struct sctp_stream_reset_event *strreset; int len; - if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_STREAM_RESETEVNT)) { + if ((stcb == NULL) || + (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_STREAM_RESETEVNT))) { /* event not enabled */ return; } |