From: Pekka Riikonen Date: Sun, 19 May 2002 16:36:34 +0000 (+0000) Subject: updates. X-Git-Tag: silc.server.0.9.1~3 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=697f77adf346b6c7415e557876406b909eae3873 updates. --- diff --git a/CHANGES b/CHANGES index 0daf65e1..6269d567 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,9 @@ +Sun May 19 18:59:00 EEST 2002 Pekka Riikonen + + * Fixed the CHANNEL_CHANGE notify handling in client libary + to not use freed memory. Affected file is + lib/silcclient/client_notify.c. + Sat May 18 11:35:19 EEST 2002 Pekka Riikonen * Allow multiple identical pending commands to be registered diff --git a/lib/silcclient/client_notify.c b/lib/silcclient/client_notify.c index 6eb1686a..317bd078 100644 --- a/lib/silcclient/client_notify.c +++ b/lib/silcclient/client_notify.c @@ -814,7 +814,8 @@ void silc_client_notify_by_server(SilcClient client, goto out; /* Replace the Channel ID */ - silc_client_replace_channel_id(client, conn, channel, channel_id); + if (silc_client_replace_channel_id(client, conn, channel, channel_id)) + channel_id = NULL; /* Notify application */ client->internal->ops->notify(client, conn, type, channel, channel);