From 77f9794e142c6092fed99fc5f7e76bb78823cad8 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sat, 30 Sep 2000 13:57:26 +0000 Subject: [PATCH] minor change --- apps/silcd/server.c | 7 ++----- lib/silcclient/client.c | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/silcd/server.c b/apps/silcd/server.c index 2bc6e45e..e735125f 100644 --- a/apps/silcd/server.c +++ b/apps/silcd/server.c @@ -1155,11 +1155,8 @@ SILC_TASK_CALLBACK(silc_server_packet_process) /* Process the packet. This will call the parser that will then decrypt and parse the packet. */ - if (!silc_packet_receive_process(sock, cipher, hmac, - silc_server_packet_parse, server)) { - silc_buffer_clear(sock->inbuf); - return; - } + silc_packet_receive_process(sock, cipher, hmac, + silc_server_packet_parse, server); } } diff --git a/lib/silcclient/client.c b/lib/silcclient/client.c index ad273bdc..dba66d29 100644 --- a/lib/silcclient/client.c +++ b/lib/silcclient/client.c @@ -606,11 +606,8 @@ SILC_TASK_CALLBACK(silc_client_packet_process) /* Process the packet. This will call the parser that will then decrypt and parse the packet. */ - if (!silc_packet_receive_process(sock, conn->receive_key, conn->hmac, - silc_client_packet_parse, client)) { - silc_buffer_clear(sock->inbuf); - return; - } + silc_packet_receive_process(sock, conn->receive_key, conn->hmac, + silc_client_packet_parse, client); } } -- 2.43.0