Fix a LOR in SCTP which was found by running syzkaller.

Submitted by:		rrs@
Reported by:		markj@
MFC after:		1 week
This commit is contained in:
tuexen 2019-07-23 18:07:36 +00:00
parent 0398fcae64
commit 49092d73d3

View File

@ -965,9 +965,9 @@ sctp_shutdown(struct socket *so)
abort_anyway:
op_err = sctp_generate_cause(SCTP_CAUSE_USER_INITIATED_ABT, "");
stcb->sctp_ep->last_abort_code = SCTP_FROM_SCTP_USRREQ + SCTP_LOC_6;
SCTP_INP_RUNLOCK(inp);
sctp_abort_an_association(stcb->sctp_ep, stcb,
op_err, SCTP_SO_LOCKED);
SCTP_INP_RUNLOCK(inp);
return (0);
}
}