updates.
[silc.git] / apps / silcd / server.c
index a82d494c862250c75b6ed7b91d64ab3801802adf..df6a94db45eb4bf98f9a345bd042518dab4e1aea 100644 (file)
@@ -2003,7 +2003,8 @@ void silc_server_free_client_data(SilcServer server,
 
   /* If there is pending outgoing data for the client then purge it
      to the network before removing the client entry. */
-  if (SILC_IS_OUTBUF_PENDING(sock) && (SILC_IS_DISCONNECTED(sock) == FALSE)) {
+  if (sock && SILC_IS_OUTBUF_PENDING(sock) && 
+      (SILC_IS_DISCONNECTED(sock) == FALSE)) {
     server->stat.packets_sent++;
 
     if (sock->outbuf->data - sock->outbuf->head)