projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad10dc0
)
Avoid NULL dereference when leaving a channel with a private key.
author
Kp
<kp@valhallalegends.com>
Fri, 25 Apr 2008 03:18:27 +0000
(22:18 -0500)
committer
Kp
<kp@valhallalegends.com>
Mon, 1 Sep 2008 19:51:50 +0000
(14:51 -0500)
Split out a patch from Skywing <skywing@valhallalegends.com> to fix a
NULL pointer dereference when the client leaves a +k channel and the
local user had set a key for the channel.
lib/silcclient/client_channel.c
patch
|
blob
|
history
diff --git
a/lib/silcclient/client_channel.c
b/lib/silcclient/client_channel.c
index 32dac873e13b7f97f0d1d7ca06a04f801f9c0e62..4120695d76af08286853fa5fc5bdf31f0f767220 100644
(file)
--- a/
lib/silcclient/client_channel.c
+++ b/
lib/silcclient/client_channel.c
@@
-630,7
+630,7
@@
SilcBool silc_client_del_channel_private_keys(SilcClient client,
channel->cipher = silc_cipher_get_name(channel->internal.send_key);
else
channel->cipher = NULL;
- if (channel->hmac)
+ if (channel->
internal.
hmac)
channel->hmac = silc_hmac_get_name(channel->internal.hmac);
else
channel->hmac = NULL;