aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_handle_intern.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_handle_intern.c')
-rw-r--r--src/gnunet_chat_handle_intern.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c
index cf8a3b3..63758a8 100644
--- a/src/gnunet_chat_handle_intern.c
+++ b/src/gnunet_chat_handle_intern.c
@@ -224,6 +224,9 @@ on_handle_gnunet_identity(void *cls,
224{ 224{
225 struct GNUNET_CHAT_Handle* handle = cls; 225 struct GNUNET_CHAT_Handle* handle = cls;
226 226
227 if (!name)
228 return;
229
227 if (!ego) 230 if (!ego)
228 goto send_refresh; 231 goto send_refresh;
229 232
@@ -248,6 +251,8 @@ on_handle_gnunet_identity(void *cls,
248 handle->accounts_tail, 251 handle->accounts_tail,
249 accounts 252 accounts
250 ); 253 );
254
255 GNUNET_free(accounts);
251 } 256 }
252 257
253 goto send_refresh; 258 goto send_refresh;
@@ -267,6 +272,9 @@ skip_account:
267 accounts = GNUNET_new(struct GNUNET_CHAT_InternalAccounts); 272 accounts = GNUNET_new(struct GNUNET_CHAT_InternalAccounts);
268 accounts->account = account_create_from_ego(ego, name); 273 accounts->account = account_create_from_ego(ego, name);
269 274
275 accounts->handle = handle;
276 accounts->op = NULL;
277
270 if (handle->directory) 278 if (handle->directory)
271 account_update_directory(accounts->account, handle->directory); 279 account_update_directory(accounts->account, handle->directory);
272 280