diff options
author | jhb <jhb@FreeBSD.org> | 2016-12-01 23:27:59 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-12-01 23:27:59 +0000 |
commit | 98f3fcdf7c28e56781794d2fc9b78c98ea7ebcb7 (patch) | |
tree | 09ccee83d69e743eab427282a02be2c4a3cba5fc | |
parent | 1309465ad40a38cf9008f5eb2e56918c7bea3a20 (diff) | |
download | FreeBSD-src-98f3fcdf7c28e56781794d2fc9b78c98ea7ebcb7.zip FreeBSD-src-98f3fcdf7c28e56781794d2fc9b78c98ea7ebcb7.tar.gz |
MFC 304838:
Do not free an uninitialized pointer on soaccept failure in the iWARP
connection manager.
Sponsored by: Chelsio Communications
-rw-r--r-- | sys/ofed/drivers/infiniband/core/iwcm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ofed/drivers/infiniband/core/iwcm.c b/sys/ofed/drivers/infiniband/core/iwcm.c index 5a1cc72..3651063 100644 --- a/sys/ofed/drivers/infiniband/core/iwcm.c +++ b/sys/ofed/drivers/infiniband/core/iwcm.c @@ -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); |