From ae6052d215699d28c10af64da8066b7b5175f58d Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Tue, 3 Mar 2009 08:02:27 +0200 Subject: [PATCH] silcd: IDENTIFY command reply didn't save userinfo correctly The IDENTIFY command reply didn't duplicate the userinfo when adding new client thus causing weird crashes later when freeing the userinfo. --- apps/silcd/command_reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/silcd/command_reply.c b/apps/silcd/command_reply.c index 688b8567..47c7a3f5 100644 --- a/apps/silcd/command_reply.c +++ b/apps/silcd/command_reply.c @@ -653,7 +653,7 @@ silc_server_command_reply_identify_save(SilcServerCommandReplyContext cmd) global. */ client = silc_idlist_add_client(server->global_list, nick[0] ? strdup(nick) : NULL, - info, NULL, + info ? strdup(info) : NULL, NULL, silc_id_dup(&client_id, SILC_ID_CLIENT), silc_packet_get_context(cmd->sock), NULL); -- 2.24.0