Assert that the client count is positive prior to decrementing it.
authorKp <kp@valhallalegends.com>
Fri, 4 Jul 2008 18:06:00 +0000 (13:06 -0500)
committerKp <kp@valhallalegends.com>
Sun, 9 Nov 2008 07:06:47 +0000 (02:06 -0500)
commite69eab552f385361553ef94c80dd64040873a02f
tree2f0ca9624d8a91c74d19508c0c523a5adcdc4dbd
parent985f57f253454fde2875f3623d76635d90a273cc
Assert that the client count is positive prior to decrementing it.

A situation has been observed where a silcd has clients connected to it,
but reports 0 local users.  It is believed that when these users log
off, the server underflows and refuses new connections.  Assert that no
underflow occurs, which should prove or disprove this theory.
apps/silcd/packet_receive.c
apps/silcd/server.c
apps/silcd/server_util.c
lib/silcserver/server_util.c