projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Assure that channel key is set before sending it.
[silc.git]
/
apps
/
silcd
/
packet_send.c
diff --git
a/apps/silcd/packet_send.c
b/apps/silcd/packet_send.c
index ae0f1c7bc7f7efa7dd46b4ee25650a1e23a475a3..000f16df4f1b2018b49c941a08f2c5eb403e55c8 100644
(file)
--- a/
apps/silcd/packet_send.c
+++ b/
apps/silcd/packet_send.c
@@
-1770,6
+1770,9
@@
void silc_server_send_channel_key(SilcServer server,
chid = silc_id_id2str(channel->id, SILC_ID_CHANNEL);
if (!chid)
return;
+
+ if (!channel->channel_key)
+ return;
/* Encode channel key packet */
tmp_len = strlen(channel->channel_key->cipher->name);