523: Fix leak if setsockopt fails r=badboy
This commit is contained in:
not-a-robot[bot] 2017-07-15 14:05:56 +00:00
commit 7d99652241

1
net.c
View File

@ -357,6 +357,7 @@ addrretry:
n = 1;
if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char*) &n,
sizeof(n)) < 0) {
freeaddrinfo(bservinfo);
goto error;
}
}