Fixed backup router shutdown crash
authorPekka Riikonen <priikone@silcnet.org>
Sat, 13 Sep 2008 12:49:23 +0000 (15:49 +0300)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 13 Sep 2008 12:49:23 +0000 (15:49 +0300)
apps/silcd/server_backup.c

index e460c95..3bde180 100644 (file)
@@ -786,6 +786,9 @@ SILC_TASK_CALLBACK(silc_server_backup_connected_again)
   SilcServer server = app_context;
   SilcServerConfigRouter *primary;
 
+  if (server->server_shutdown)
+    return;
+
   primary = silc_server_config_get_primary_router(server);
   if (primary) {
     if (!silc_server_find_socket_by_host(server, SILC_CONN_ROUTER,