projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e7268c
)
silcd: IDENTIFY command reply didn't save userinfo correctly
author
Pekka Riikonen
<priikone@silcnet.org>
Tue, 3 Mar 2009 06:02:27 +0000
(08:02 +0200)
committer
Pekka Riikonen
<priikone@silcnet.org>
Tue, 3 Mar 2009 06:02:27 +0000
(08:02 +0200)
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
patch
|
blob
|
history
diff --git
a/apps/silcd/command_reply.c
b/apps/silcd/command_reply.c
index 688b85674bc93c79768348f2a1671dfdf651de9d..47c7a3f5315aad7e49dfb9c552d44e14077072b2 100644
(file)
--- 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);