updartes.
[silc.git] / lib / silcclient / client_channel.c
index 814dea43b6c03b942ea56fab22ddac58bbaf09fd..8d3431ca0c4adbc490307146bddd011705413868 100644 (file)
@@ -241,14 +241,19 @@ void silc_client_channel_message(SilcClient client,
        we will use the old key in decryption. If that fails too then we
        cannot do more and will drop the packet. */
     if (!payload) {
-      if (!channel->old_channel_key)
+      SILC_LOG_ERROR(("decr failed"));
+      if (!channel->old_channel_key) {
+      SILC_LOG_ERROR(("no old key"));
        goto out;
+      }
 
       payload = silc_channel_message_payload_parse(buffer->data, buffer->len, 
                                                   channel->old_channel_key,
                                                   channel->old_hmac);
-      if (!payload)
+      if (!payload) {
+      SILC_LOG_ERROR(("old decr failed"));
        goto out;
+      }
     }
   } else if (channel->private_keys) {
     SilcChannelPrivateKey entry;