(svn r15176) -Fix [FS#2554]: querying the content server could free when resolving the hostname or connecting takes long/is timing out.

This commit is contained in:
rubidium
2009-01-20 16:51:55 +00:00
parent 3d35b3c2cc
commit eeb38a8e3a
6 changed files with 550 additions and 415 deletions

View File

@@ -191,9 +191,9 @@ public:
* @param sin IP etc. of the client
*/
NetworkContentSocketHandler(SOCKET s, const struct sockaddr_in *sin) :
NetworkTCPSocketHandler(s),
client_addr(*sin)
NetworkTCPSocketHandler(s)
{
if (sin != NULL) this->client_addr = *sin;
}
/** On destructing of this class, the socket needs to be closed */