commit - 03cde2efd3044a226b94b72810113080a3250d05
commit + 1b73e68e6eb82693c4821758879ae632aff3664f
blob - 7b07114b0730fede7080ae8246bc8c3dcbabbf92
blob + e82b717a4147ae9bd449f7c01f23628791eb5bcb
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
cb_listen(int sock, short irrelevant)
{
(void) irrelevant;
- if (New_Connection( sock ) >= 0)
- NumConnections++;
- LogDebug("Total number of connections now %ld.", NumConnections);
+ (void) New_Connection(sock);
}
fd = New_Connection(sock);
if (fd < 0)
return;
-
- NumConnections++;
- LogDebug("Total number of connections now %ld.", NumConnections);
io_event_setcb(My_Connections[fd].sock, cb_clientserver_ssl);
}
#endif
* DNS and IDENT resolver subprocess using the "penalty" mechanism.
* If there are results earlier, the delay is aborted. */
Conn_SetPenalty(new_sock, 4);
+
+ NumConnections++;
+ LogDebug("Total number of connections now %ld.", NumConnections);
return new_sock;
} /* New_Connection */