X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcpacket.c;h=0791a70f590832ed7828b130dfac1457ff035e57;hb=6b04fdb6b8f0c95eaa54935adc79afc8bee51091;hp=639794738e8d712e36ba61a8ea8cd03b4f01d9ab;hpb=157f4732888e39853b3de6617eeeffd910a4a06d;p=silc.git diff --git a/lib/silccore/silcpacket.c b/lib/silccore/silcpacket.c index 63979473..0791a70f 100644 --- a/lib/silccore/silcpacket.c +++ b/lib/silccore/silcpacket.c @@ -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 */