Do not free an uninitialized pointer on soaccept failure in the iWARP

connection manager.

Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2016-08-26 08:25:28 +00:00
parent 91843cf34e
commit a5234e8ccb

View File

@ -438,6 +438,7 @@ dequeue_socket(struct socket *head)
so->so_state |= SS_NBIO;
SOCK_UNLOCK(so);
ACCEPT_UNLOCK();
remote = NULL;
soaccept(so, (struct sockaddr **)&remote);
free(remote, M_SONAME);