From: Pekka Riikonen Date: Sat, 30 Sep 2000 15:02:26 +0000 (+0000) Subject: updates X-Git-Tag: SILC.0.1~383 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=c177c0fc6e05d0117b391458a74f0df01ad522e9 updates --- diff --git a/lib/silccore/silcpacket.c b/lib/silccore/silcpacket.c index 3642ddb8..bfd237b1 100644 --- a/lib/silccore/silcpacket.c +++ b/lib/silccore/silcpacket.c @@ -368,11 +368,6 @@ void silc_packet_receive_process(SilcSocketConnection sock, SilcPacketParserContext *parse_ctx; int packetlen, paddedlen, count, mac_len = 0; - /* We need at least 2 bytes of data to be able to start processing - the packet. */ - if (sock->inbuf->len < 2) - return; - if (hmac) mac_len = hmac->hash->hash->hash_len; @@ -385,7 +380,7 @@ void silc_packet_receive_process(SilcSocketConnection sock, if (packetlen < SILC_PACKET_MIN_LEN) { SILC_LOG_DEBUG(("Received invalid packet, dropped")); - return; + continue; } if (sock->inbuf->len < paddedlen + mac_len) {