Commit a55b93e7 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

tport_type_tcp.c: do not close socket owned by tport object.

parent 61fdffc0
......@@ -132,10 +132,10 @@ int tport_stream_init_primary(tport_primary_t *pri,
if (tport_bind_socket(socket, ai, return_culprit) == SOCKET_ERROR)
return su_close(socket), -1;
return -1;
if (listen(socket, pri->pri_params->tpp_qsize) == SOCKET_ERROR)
return *return_culprit = "listen", su_close(socket), -1;
return *return_culprit = "listen", -1;
#if !defined(__linux__)
/* Allow reusing TCP sockets
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment