update
authorPekka Riikonen <priikone@silcnet.org>
Fri, 2 Feb 2001 13:56:21 +0000 (13:56 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 2 Feb 2001 13:56:21 +0000 (13:56 +0000)
apps/silcd/server.c

index 05e19ad8448602b47164e6ddb191699d3788f430..d79374fde8551b01cfeefb2352fc970787573e20 100644 (file)
@@ -1874,6 +1874,9 @@ SILC_TASK_CALLBACK(silc_server_timeout_remote)
   SilcServerConnection sconn = (SilcServerConnection)context;
   SilcSocketConnection sock = sconn->server->sockets[fd];
 
+  if (!sock)
+    return;
+
   silc_server_disconnect_remote(sconn->server, sock, 
                                "Server closed connection: "
                                "Connection timeout");