mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-23 07:31:31 +00:00
sctp: allow stcb == NULL in sctp_shutdown()
Consistently handle this case. Reported by: Coverity Scan CID: 1533813 MFC after: 3 days
This commit is contained in:
parent
83dcc7790b
commit
8c37094036
@ -843,8 +843,10 @@ sctp_shutdown(struct socket *so, enum shutdown_how how)
|
||||
}
|
||||
sctp_free_a_readq(stcb, control);
|
||||
} else {
|
||||
stcb->asoc.size_on_all_streams +=
|
||||
control->length;
|
||||
if (stcb != NULL) {
|
||||
stcb->asoc.size_on_all_streams +=
|
||||
control->length;
|
||||
}
|
||||
}
|
||||
}
|
||||
SOCK_UNLOCK(so);
|
||||
|
Loading…
Reference in New Issue
Block a user