Acquire the accept mutex in soabort() before calling sotryfree(), as

that is now required.

RELENG_5_3 candidate.

Foot provided by:	Dikshie <dikshie at ppk dot itb dot ac dot id>
This commit is contained in:
Robert Watson 2004-11-02 17:15:13 +00:00
parent 26105004c3
commit aae2782bff

View File

@ -490,6 +490,7 @@ soabort(so)
error = (*so->so_proto->pr_usrreqs->pru_abort)(so);
if (error) {
ACCEPT_LOCK();
SOCK_LOCK(so);
sotryfree(so); /* note: does not decrement the ref count */
return error;