projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
silcd: IDENTIFY command reply didn't save client correctly
[silc.git]
/
apps
/
silcd
/
command_reply.c
diff --git
a/apps/silcd/command_reply.c
b/apps/silcd/command_reply.c
index a31588d6e71d529ba4f54e0b5ee12b81fa36b2a5..688b85674bc93c79768348f2a1671dfdf651de9d 100644
(file)
--- a/
apps/silcd/command_reply.c
+++ b/
apps/silcd/command_reply.c
@@
-652,7
+652,8
@@
silc_server_command_reply_identify_save(SilcServerCommandReplyContext cmd)
to global list since server didn't have it in the lists so it must be
global. */
client = silc_idlist_add_client(server->global_list,
to global list since server didn't have it in the lists so it must be
global. */
client = silc_idlist_add_client(server->global_list,
- nick[0] ? nick : NULL, info, NULL,
+ nick[0] ? strdup(nick) : NULL,
+ info, NULL,
silc_id_dup(&client_id, SILC_ID_CLIENT),
silc_packet_get_context(cmd->sock),
NULL);
silc_id_dup(&client_id, SILC_ID_CLIENT),
silc_packet_get_context(cmd->sock),
NULL);