X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fserver_backup.c;h=31cd6efddb1ee0d404f84e18b5470ab410874eba;hb=afb45ac59c311422e6724e31be2013e46cee908a;hp=d040d454b65d0efd5828689502a334ffe7a582da;hpb=320bf875dcc0933966191c51c7a4f38f77a1c22a;p=silc.git diff --git a/apps/silcd/server_backup.c b/apps/silcd/server_backup.c index d040d454..31cd6efd 100644 --- a/apps/silcd/server_backup.c +++ b/apps/silcd/server_backup.c @@ -1091,16 +1091,17 @@ SILC_TASK_CALLBACK_GLOBAL(silc_server_protocol_backup) server->router->server_name)); SILC_LOG_DEBUG(("Switching back to primary router %s", server->router->server_name)); + idata = (SilcIDListData)server->router; + idata->status &= ~SILC_IDLIST_STATUS_DISABLED; } else { SILC_LOG_INFO(("Resuming the use of router %s", router->server_name)); SILC_LOG_DEBUG(("Resuming the use of router %s", router->server_name)); + idata = (SilcIDListData)router; + idata->status &= ~SILC_IDLIST_STATUS_DISABLED; } - idata = (SilcIDListData)server->router; - idata->status &= ~SILC_IDLIST_STATUS_DISABLED; - /* Update the client entries of the backup router to the new router */ silc_server_update_clients_by_server(server, backup_router,