diff options
author | tuexen <tuexen@FreeBSD.org> | 2016-04-18 09:29:14 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2016-04-18 09:29:14 +0000 |
commit | d1da7b18c1b48205561455f5039096bb3b6f4c5b (patch) | |
tree | 767c69b33ba061ce2746caf01a3ecbb158be9979 /sys/netinet/sctputil.c | |
parent | 8fba8672e61fae649b101b9701ad4149e006e04e (diff) | |
download | FreeBSD-src-d1da7b18c1b48205561455f5039096bb3b6f4c5b.zip FreeBSD-src-d1da7b18c1b48205561455f5039096bb3b6f4c5b.tar.gz |
Put panic() calls under INVARIANTS.
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r-- | sys/netinet/sctputil.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index ced18fe..2af9f03 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -5565,10 +5565,12 @@ restart_nosblocks: sctp_m_free(control->aux_data); control->aux_data = NULL; } +#ifdef INVARIANTS if (control->on_strm_q) { panic("About to free ctl:%p so:%p and its in %d", control, so, control->on_strm_q); } +#endif sctp_free_remote_addr(control->whoFrom); sctp_free_a_readq(stcb, control); if (hold_rlock) { @@ -5976,10 +5978,12 @@ get_more_data: no_rcv_needed = control->do_not_ref_stcb; sctp_free_remote_addr(control->whoFrom); control->data = NULL; +#ifdef INVARIANTS if (control->on_strm_q) { panic("About to free ctl:%p so:%p and its in %d", control, so, control->on_strm_q); } +#endif sctp_free_a_readq(stcb, control); control = NULL; if ((freed_so_far >= rwnd_req) && |