projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed channel MAC key setting in JOIN notify and command reply
[silc.git]
/
lib
/
silcclient
/
client_notify.c
diff --git
a/lib/silcclient/client_notify.c
b/lib/silcclient/client_notify.c
index 2ccb574c1ac8a384d7fd6a36939e8a0c5b097e52..e855e41294908770b228663fc8bbee824eb79c8f 100644
(file)
--- a/
lib/silcclient/client_notify.c
+++ b/
lib/silcclient/client_notify.c
@@
-918,9
+918,7
@@
SILC_FSM_STATE(silc_client_notify_cmode_change)
/* Get HMAC key from the old HMAC context, and update it to the new one */
tmp = (unsigned char *)silc_hmac_get_key(channel->internal.hmac, &tmp_len);
if (tmp) {
/* Get HMAC key from the old HMAC context, and update it to the new one */
tmp = (unsigned char *)silc_hmac_get_key(channel->internal.hmac, &tmp_len);
if (tmp) {
- silc_hash_make(silc_hmac_get_hash(newhmac), tmp, tmp_len, hash);
- silc_hmac_set_key(newhmac, hash,
- silc_hash_len(silc_hmac_get_hash(newhmac)));
+ silc_hmac_set_key(newhmac, tmp, tmp_len);
if (channel->internal.hmac)
silc_hmac_free(channel->internal.hmac);
channel->internal.hmac = newhmac;
if (channel->internal.hmac)
silc_hmac_free(channel->internal.hmac);
channel->internal.hmac = newhmac;