diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2021-04-26 00:56:48 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2021-04-26 00:56:48 +0000 |
commit | 163153c2a0809d2710e607463dcb24c7f795e156 (patch) | |
tree | 5cebf15e5eed28d22e0b209047103025c4da6823 | |
parent | 0f6bea61edb4d055fe6e340aab3685054a582020 (diff) | |
download | src-163153c2a0809d2710e607463dcb24c7f795e156.tar.gz src-163153c2a0809d2710e607463dcb24c7f795e156.zip |
sctp: small cleanup, no functional change
MFC: 3 days
-rw-r--r-- | sys/netinet/sctp_input.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index 43a2b06d1c79..5b4c3152da0d 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -3412,19 +3412,16 @@ sctp_find_stream_reset(struct sctp_tcb *stcb, uint32_t seq, struct sctp_tmit_chu int len, clen; asoc = &stcb->asoc; - if (TAILQ_EMPTY(&stcb->asoc.control_send_queue)) { - asoc->stream_reset_outstanding = 0; - return (NULL); - } - if (stcb->asoc.str_reset == NULL) { + chk = asoc->str_reset; + if (TAILQ_EMPTY(&asoc->control_send_queue) || + (chk == NULL)) { asoc->stream_reset_outstanding = 0; return (NULL); } - chk = stcb->asoc.str_reset; if (chk->data == NULL) { return (NULL); } - if (bchk) { + if (bchk != NULL) { /* he wants a copy of the chk pointer */ *bchk = chk; } |