From c4c99b76fe5967546b59e0f0560baae3adb28cc5 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sun, 11 Nov 2007 12:12:23 +0000 Subject: [PATCH] Accept RESUME_CLIENT with and without source id in packet. --- apps/silcd/server.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.24.0