From: Pekka Riikonen Date: Sun, 11 Nov 2007 12:12:23 +0000 (+0000) Subject: Accept RESUME_CLIENT with and without source id in packet. X-Git-Tag: silc.toolkit.1.1.5~1 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=c4c99b76fe5967546b59e0f0560baae3adb28cc5 Accept RESUME_CLIENT with and without source id in packet. --- diff --git a/apps/silcd/server.c b/apps/silcd/server.c index 9f68e5b8..8093acf6 100644 --- a/apps/silcd/server.c +++ b/apps/silcd/server.c @@ -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;