Fix a crash when using one-to-one stlye socket in non-blocking
mode and there is no listening server. PR: 137795 Approved by: re, rrs (mentor) MFC after:immediately.
This commit is contained in:
parent
e477e4fe8e
commit
627dfd6df9
1 changed files with 2 additions and 1 deletions
|
|
@ -12464,7 +12464,8 @@ sctp_lower_sosend(struct socket *so,
|
|||
error = ENOTCONN;
|
||||
goto out_unlocked;
|
||||
}
|
||||
hold_tcblock = 0;
|
||||
SCTP_TCB_LOCK(stcb);
|
||||
hold_tcblock = 1;
|
||||
SCTP_INP_RUNLOCK(inp);
|
||||
if (addr) {
|
||||
/* Must locate the net structure if addr given */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue