projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed client resuming.
[silc.git]
/
apps
/
silcd
/
idlist.c
diff --git
a/apps/silcd/idlist.c
b/apps/silcd/idlist.c
index e302b6e6bf3ddfed204cdd7fee49e633c4dff14e..e4dbfbd6077e69c152deb88cf4b8a4a839c0f30e 100644
(file)
--- a/
apps/silcd/idlist.c
+++ b/
apps/silcd/idlist.c
@@
-55,8
+55,6
@@
void silc_idlist_del_data(void *entry)
if (idata->hash)
silc_hash_free(idata->hash);
if (idata->hash)
silc_hash_free(idata->hash);
- if (idata->public_key)
- silc_pkcs_public_key_free(idata->public_key);
idata->hash = NULL;
idata->public_key = NULL;
idata->hash = NULL;
idata->public_key = NULL;
@@
-338,6
+336,8
@@
silc_idlist_add_client(SilcIDList id_list, char *nickname, char *username,
}
client = silc_calloc(1, sizeof(*client));
}
client = silc_calloc(1, sizeof(*client));
+ if (!client)
+ return NULL;
client->nickname = nickname;
client->username = username ? strdup(username) : NULL;
client->userinfo = userinfo;
client->nickname = nickname;
client->username = username ? strdup(username) : NULL;
client->userinfo = userinfo;