X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient_channel.c;h=8d3431ca0c4adbc490307146bddd011705413868;hb=6102b7fda33850dc675eb711aca7dc935453dcc9;hp=814dea43b6c03b942ea56fab22ddac58bbaf09fd;hpb=63ce9e3eb1938cee8672fd914531cea4543bb79f;p=silc.git diff --git a/lib/silcclient/client_channel.c b/lib/silcclient/client_channel.c index 814dea43..8d3431ca 100644 --- a/lib/silcclient/client_channel.c +++ b/lib/silcclient/client_channel.c @@ -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;