Accept RESUME_CLIENT with and without source id in packet.
[silc.git] / apps / silcd / server.c
index 9f68e5b8f4fd869ea3f6ff407652e432b4ea4a52..8093acf63705c93770bae467c9b235ee6a535e29 100644 (file)
@@ -108,11 +108,10 @@ static SilcBool silc_server_packet_receive(SilcPacketEngine engine,
       packet->type != SILC_PACKET_DISCONNECT)
     return FALSE;
 
-  /* NEW_CLIENT, NEW_SERVER and RESUME_CLIENT are accepted only without
-     source ID and for unregistered connection. */
+  /* NEW_CLIENT and NEW_SERVER are accepted only without source ID and
+     for unregistered connection. */
   if (packet->src_id && (packet->type == SILC_PACKET_NEW_CLIENT ||
-                        packet->type == SILC_PACKET_NEW_SERVER ||
-                        packet->type == SILC_PACKET_RESUME_CLIENT) &&
+                        packet->type == SILC_PACKET_NEW_SERVER) &&
       (idata->status & SILC_IDLIST_STATUS_REGISTERED))
     return FALSE;