Commit a55b93e7 authored by Pekka Pessi's avatar Pekka Pessi

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

darcs-hash:20060530182230-65a35-b53ef2e3c4e69722a58bb8b378948228be1c7309.gz
parent 61fdffc0
...@@ -132,10 +132,10 @@ int tport_stream_init_primary(tport_primary_t *pri, ...@@ -132,10 +132,10 @@ int tport_stream_init_primary(tport_primary_t *pri,
#endif #endif
if (tport_bind_socket(socket, ai, return_culprit) == SOCKET_ERROR) 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) 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__) #if !defined(__linux__)
/* Allow reusing TCP sockets /* 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