diff options
Diffstat (limited to 'src/network/core')
-rw-r--r-- | src/network/core/tcp_content.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/core/tcp_content.h b/src/network/core/tcp_content.h index 60f68d933..e084f5fc7 100644 --- a/src/network/core/tcp_content.h +++ b/src/network/core/tcp_content.h @@ -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 */ |