Don't make the sendall iterator as being up if it could not be started.
MFC after: 1 week
This commit is contained in:
parent
4b66d476b3
commit
97a8ab398e
@ -6932,7 +6932,7 @@ sctp_sendall(struct sctp_inpcb *inp, struct uio *uio, struct mbuf *m,
|
||||
(void *)ca, 0,
|
||||
sctp_sendall_completes, inp, 1);
|
||||
if (ret) {
|
||||
SCTP_PRINTF("Failed to initiate iterator for sendall\n");
|
||||
inp->sctp_flags &= ~SCTP_PCB_FLAGS_SND_ITERATOR_UP;
|
||||
SCTP_FREE(ca, SCTP_M_COPYAL);
|
||||
SCTP_LTRACE_ERR_RET_PKT(m, inp, NULL, NULL, SCTP_FROM_SCTP_OUTPUT, EFAULT);
|
||||
return (EFAULT);
|
||||
|
Loading…
Reference in New Issue
Block a user