Fixed channel key setting.
[silc.git] / lib / silcclient / command_reply.c
index c1c7b190c2436e2487320dcebc4b2cfc05b718db..39e0f92837e71ecabbb53d3f1ea81e5972e7a900 100644 (file)
@@ -1273,8 +1273,8 @@ SILC_FSM_STATE(silc_client_command_reply_join)
   /* Set current channel */
   conn->current_channel = channel;
 
-  cipher = (channel->internal.channel_key ?
-           silc_cipher_get_name(channel->internal.channel_key) : NULL);
+  cipher = (channel->internal.send_key ?
+           silc_cipher_get_name(channel->internal.send_key) : NULL);
   silc_hash_table_list(channel->user_list, &htl);
 
   /* Notify application */