X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fpacket_send.c;h=9c721ab01e07f9bc05c20ddb18d06418323b8786;hb=5c09779adcdcf723755b5692a20eeaa3664a7fea;hp=dbf8fb773a6ce8cb9dae5df7c5587f916009c328;hpb=a312fb463ab0d4673f6666a8224765082c941005;p=crypto.git diff --git a/apps/silcd/packet_send.c b/apps/silcd/packet_send.c index dbf8fb77..9c721ab0 100644 --- a/apps/silcd/packet_send.c +++ b/apps/silcd/packet_send.c @@ -1,6 +1,6 @@ /* - packet_send.c + packet_send.c Author: Pekka Riikonen @@ -8,9 +8,8 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - + the Free Software Foundation; version 2 of the License. + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -96,9 +95,11 @@ void silc_server_packet_send(SilcServer server, if (SILC_IS_DISCONNECTING(sock)) return; - /* If entry is disabled do not sent anything. */ + /* If entry is disabled do not sent anything. Allow hearbeat and + rekeys, though */ if ((idata && idata->status & SILC_IDLIST_STATUS_DISABLED && - type != SILC_PACKET_HEARTBEAT) || + type != SILC_PACKET_HEARTBEAT && type != SILC_PACKET_REKEY && + type != SILC_PACKET_REKEY_DONE) || sock->user_data == server->id_entry) { SILC_LOG_DEBUG(("Connection is disabled")); return;