Fix debug message "Client ... is closing connection"
authorAlexander Barton <alex@barton.de>
Sat, 1 Aug 2015 13:14:23 +0000 (15:14 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 1 Aug 2015 13:14:23 +0000 (15:14 +0200)
It should be "host:port"!

src/ngircd/conn.c

index 6b3b51e..edcd868 100644 (file)
@@ -1583,7 +1583,7 @@ Read_Request( CONN_ID Idx )
        if (len == 0) {
                LogDebug("Client \"%s:%u\" is closing connection %d ...",
                         My_Connections[Idx].host,
-                        ng_ipaddr_tostr(&My_Connections[Idx].addr), Idx);
+                        ng_ipaddr_getport(&My_Connections[Idx].addr), Idx);
                Conn_Close(Idx, NULL, "Client closed connection", false);
                return;
        }