diff options
author | Gabor X Toth <*@tg-x.net> | 2016-06-06 20:00:23 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2016-06-06 20:00:23 +0000 |
commit | eaddede2ab93ecd09f4bb9514e682a2165b67718 (patch) | |
tree | 50c2f076dc9d526f987f4d10a1e5cae5c6b72bd8 /src/social/social_api.c | |
parent | 24063cff9c2e4ba0196d2c63e7a1485e1425a11c (diff) | |
download | gnunet-eaddede2ab93ecd09f4bb9514e682a2165b67718.tar.gz gnunet-eaddede2ab93ecd09f4bb9514e682a2165b67718.zip |
fixes
Diffstat (limited to 'src/social/social_api.c')
-rw-r--r-- | src/social/social_api.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/social/social_api.c b/src/social/social_api.c index e590f7856..3a57af5dd 100644 --- a/src/social/social_api.c +++ b/src/social/social_api.c | |||
@@ -411,6 +411,7 @@ host_recv_notice_place_leave_method (void *cls, | |||
411 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 411 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
412 | "_notice_place_leave: got method from nym %s (%s).\n", | 412 | "_notice_place_leave: got method from nym %s (%s).\n", |
413 | GNUNET_h2s (&hst->notice_place_leave_nym->pub_key_hash), str); | 413 | GNUNET_h2s (&hst->notice_place_leave_nym->pub_key_hash), str); |
414 | GNUNET_free (str); | ||
414 | } | 415 | } |
415 | 416 | ||
416 | 417 | ||
@@ -459,6 +460,7 @@ host_recv_notice_place_leave_eom (void *cls, | |||
459 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 460 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
460 | "_notice_place_leave: got EOM from nym %s (%s).\n", | 461 | "_notice_place_leave: got EOM from nym %s (%s).\n", |
461 | GNUNET_h2s (&hst->notice_place_leave_nym->pub_key_hash), str); | 462 | GNUNET_h2s (&hst->notice_place_leave_nym->pub_key_hash), str); |
463 | GNUNET_free (str); | ||
462 | 464 | ||
463 | if (GNUNET_YES != is_cancelled) | 465 | if (GNUNET_YES != is_cancelled) |
464 | { | 466 | { |
@@ -1355,14 +1357,17 @@ GNUNET_SOCIAL_host_entry_decision (struct GNUNET_SOCIAL_Host *hst, | |||
1355 | void | 1357 | void |
1356 | GNUNET_SOCIAL_host_eject (struct GNUNET_SOCIAL_Host *hst, | 1358 | GNUNET_SOCIAL_host_eject (struct GNUNET_SOCIAL_Host *hst, |
1357 | const struct GNUNET_SOCIAL_Nym *nym, | 1359 | const struct GNUNET_SOCIAL_Nym *nym, |
1358 | struct GNUNET_PSYC_Environment *env) | 1360 | struct GNUNET_PSYC_Environment *e) |
1359 | { | 1361 | { |
1362 | struct GNUNET_PSYC_Environment *env = e; | ||
1360 | if (NULL == env) | 1363 | if (NULL == env) |
1361 | env = GNUNET_PSYC_env_create (); | 1364 | env = GNUNET_PSYC_env_create (); |
1362 | GNUNET_PSYC_env_add (env, GNUNET_PSYC_OP_SET, | 1365 | GNUNET_PSYC_env_add (env, GNUNET_PSYC_OP_SET, |
1363 | "_nym", &nym->pub_key, sizeof (nym->pub_key)); | 1366 | "_nym", &nym->pub_key, sizeof (nym->pub_key)); |
1364 | GNUNET_SOCIAL_host_announce (hst, "_notice_place_leave", env, NULL, NULL, | 1367 | GNUNET_SOCIAL_host_announce (hst, "_notice_place_leave", env, NULL, NULL, |
1365 | GNUNET_SOCIAL_ANNOUNCE_NONE); | 1368 | GNUNET_SOCIAL_ANNOUNCE_NONE); |
1369 | if (NULL == e) | ||
1370 | GNUNET_PSYC_env_destroy (env); | ||
1366 | } | 1371 | } |
1367 | 1372 | ||
1368 | 1373 | ||
@@ -1749,7 +1754,7 @@ GNUNET_SOCIAL_guest_enter_by_name (const struct GNUNET_SOCIAL_App *app, | |||
1749 | uint16_t password_size = strlen (password) + 1; | 1754 | uint16_t password_size = strlen (password) + 1; |
1750 | 1755 | ||
1751 | uint16_t join_msg_size = 0; | 1756 | uint16_t join_msg_size = 0; |
1752 | if (NULL != join_msg); | 1757 | if (NULL != join_msg) |
1753 | join_msg_size = ntohs (join_msg->header.size); | 1758 | join_msg_size = ntohs (join_msg->header.size); |
1754 | 1759 | ||
1755 | uint16_t greq_size = sizeof (struct GuestEnterByNameRequest) | 1760 | uint16_t greq_size = sizeof (struct GuestEnterByNameRequest) |