updates.
[silc.git] / lib / silccore / silcpacket.c
index 2e7b9cbf006b1929687356a2d6a001e1ee591f60..7674a0302fa836b78a5bf1a4b750145db5491043 100644 (file)
@@ -378,7 +378,7 @@ void silc_packet_receive_process(SilcSocketConnection sock,
     silc_buffer_put(parse_ctx->packet->buffer, sock->inbuf->data, 
                    paddedlen + mac_len);
 
-    SILC_LOG_HEXDUMP(("Incoming packet (%d) (%d bytes decrypted), len %d", 
+    SILC_LOG_HEXDUMP(("Incoming packet (%d) (%dB decrypted), len %d", 
                      sequence - 1, block_len, paddedlen + mac_len),
                     sock->inbuf->data, paddedlen + mac_len);
 
@@ -442,6 +442,9 @@ static int silc_packet_check_mac(SilcHmac hmac, SilcBuffer buffer,
     /* Compare the HMAC's (buffer->tail has the packet's HMAC) */
     if (memcmp(mac, buffer->tail, mac_len)) {
       SILC_LOG_ERROR(("MAC failed"));
+
+      /* XXX Remove */
+      assert(FALSE);
       return FALSE;
     }