projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updartes.
[silc.git]
/
lib
/
silcclient
/
client_channel.c
diff --git
a/lib/silcclient/client_channel.c
b/lib/silcclient/client_channel.c
index 814dea43b6c03b942ea56fab22ddac58bbaf09fd..8d3431ca0c4adbc490307146bddd011705413868 100644
(file)
--- 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) {
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;
goto out;
+ }
payload = silc_channel_message_payload_parse(buffer->data, buffer->len,
channel->old_channel_key,
channel->old_hmac);
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;
goto out;
+ }
}
} else if (channel->private_keys) {
SilcChannelPrivateKey entry;
}
} else if (channel->private_keys) {
SilcChannelPrivateKey entry;