minor change
authorPekka Riikonen <priikone@silcnet.org>
Sat, 30 Sep 2000 13:57:26 +0000 (13:57 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 30 Sep 2000 13:57:26 +0000 (13:57 +0000)
apps/silcd/server.c
lib/silcclient/client.c

index 2bc6e45e03ed06be32f71f8c1910e72cc3b978f0..e735125ff468c572a6df11a92f18001f5a071c38 100644 (file)
@@ -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);
   }
 }
 
index ad273bdc5046d9c27742ed7a8cd1412a9ff7e9bb..dba66d2933814ffe852f92b05a41d562d99e575c 100644 (file)
@@ -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);
   }
 }