+Sun Aug 26 14:59:15 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
+
+ * Fixed a bug in silc_client_command_identify_save when saving
+ new channel information. The channel name was no duplicated
+ and caused crash on exit. Affected file is
+ lib/silcclient/command_reply.c.
+
Fri Aug 17 23:07:45 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
* Fixed the getkey command handling in the server. Send just
silc_list_init(channel->clients, struct SilcChannelUserStruct, next);
/* Put it to the ID cache */
- silc_idcache_add(conn->channel_cache, channel_name, (void *)channel->id,
- (void *)channel, FALSE);
+ silc_idcache_add(conn->channel_cache, channel->channel_name,
+ (void *)channel->id, (void *)channel, FALSE);
return channel;
}
server_entry = silc_calloc(1, sizeof(*server_entry));
server_entry->server_id = silc_id_dup(server_id, id_type);
- server_entry->server_name = strdup(name);
+ if (name)
+ server_entry->server_name = strdup(name);
if (info)
server_entry->server_info = strdup(info);
/* Check if we have this channel cached already. */
if (!silc_idcache_find_by_id_one(conn->channel_cache,
(void *)channel_id, &id_cache)) {
+ if (!name)
+ break;
+
SILC_LOG_DEBUG(("Adding new channel entry"));
channel_entry = silc_client_new_channel_id(client, conn->sock,
- name, 0, idp);
+ strdup(name), 0, idp);
} else {
channel_entry = (SilcChannelEntry)id_cache->context;
}