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:
Michael Tuexen 2019-07-23 18:07:36 +00:00
parent e1d8b631f6
commit 1a91d6987c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350248

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);
}
}