Assert that the client count is positive prior to decrementing it.
authorkp@valhallalegends.com <kp@valhallalegends.com>
Fri, 4 Jul 2008 18:06:00 +0000 (13:06 -0500)
committerKp <kp@valhallalegends.com>
Sat, 8 Nov 2008 23:03:53 +0000 (18:03 -0500)
commit590c55bd6febdb6b22ac99b08a0f9c580b09384c
tree2f0ca9624d8a91c74d19508c0c523a5adcdc4dbd
parentcff0dcd7bd3a7fc9e011b7369f3cefd5908d16eb
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