updates.
authorPekka Riikonen <priikone@silcnet.org>
Fri, 2 Nov 2001 16:58:57 +0000 (16:58 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 2 Nov 2001 16:58:57 +0000 (16:58 +0000)
lib/silcclient/client.c
lib/silccore/silcpacket.c

index 67dfff2b78b622a05e791036977e6b9759ddda66..7ff149fd4a684fe6503c49a75d2aa1b2a9856211 100644 (file)
@@ -778,7 +778,7 @@ static bool silc_client_packet_parse(SilcPacketParserContext *parser_context,
   SilcPacketContext *packet = parser_context->packet;
   SilcPacketType ret;
 
-  if (conn && conn->hmac_receive && conn->sock == sock)
+  if (conn && conn->hmac_receive)
     conn->psn_receive = parser_context->packet->sequence + 1;
 
   /* Parse the packet immediately */
index 639794738e8d712e36ba61a8ea8cd03b4f01d9ab..0791a70f590832ed7828b130dfac1457ff035e57 100644 (file)
@@ -332,6 +332,7 @@ void silc_packet_receive_process(SilcSocketConnection sock,
 {
   SilcPacketParserContext *parse_ctx;
   int packetlen, paddedlen, mac_len = 0;
+  int block_len = cipher ? silc_cipher_get_block_len(cipher) : 0;
   bool cont = TRUE;
 
   /* Do not process for disconnected connection */
@@ -389,8 +390,7 @@ void silc_packet_receive_process(SilcSocketConnection sock,
                    paddedlen + mac_len);
 
     SILC_LOG_HEXDUMP(("Incoming packet (%d) (%dB decrypted), len %d", 
-                     sequence - 1, SILC_PACKET_MIN_HEADER_LEN, 
-                     paddedlen + mac_len),
+                     sequence - 1, block_len, paddedlen + mac_len),
                     sock->inbuf->data, paddedlen + mac_len);
 
     /* Check whether this is normal or special packet */