Fixed channel MAC key setting in JOIN notify and command reply silc.client.1.1.6 silc.server.1.1.14 silc.toolkit.1.1.8
authorPekka Riikonen <priikone@silcnet.org>
Sat, 25 Oct 2008 13:58:50 +0000 (16:58 +0300)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 25 Oct 2008 13:58:50 +0000 (16:58 +0300)
commit711fe01f210030b40ce0aeceb1c18526632ba5b8
tree508abe7504f5ed0297bf12a34f4b47cf12f47b1e
parentba3547c825889fd3ad24da4004e6d0bb5a50853c
Fixed channel MAC key setting in JOIN notify and command reply

In JOIN notify when MAC algo changes wrong key was set to the new MAC.

In JOIN command reply in backup router the channel key may not be set
in command reply because backup reiceives also CHANNEL_KEY packet from
router and hence clients receive it too, but new MAC context was still
allocated in the command reply, hence using empty MAC without key with
channel messages.
lib/silcclient/client_notify.c
lib/silcclient/command_reply.c