diff options
-rw-r--r-- | tcp-accept.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tcp-accept.c b/tcp-accept.c index cf0aa7a..92d4afe 100644 --- a/tcp-accept.c +++ b/tcp-accept.c @@ -61,6 +61,7 @@ static void tcp_acceptor(struct Listener *listener, int sock) { if (getnameinfo((struct sockaddr*)&addr, len, ipstring, sizeof(ipstring), portstring, sizeof(portstring), NI_NUMERICHOST | NI_NUMERICSERV) != 0) { + m_close(fd); return; } |