aboutsummaryrefslogtreecommitdiff
path: root/src/arm/arm_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-23 22:34:19 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-23 22:34:19 +0000
commitdf64e68d7a864d9204c44c82cc32696393161bb1 (patch)
treecfd7229c20e2c6465362c2ad156ab29741397c0f /src/arm/arm_api.c
parente5494c55573c92958633c08c906b95d4ce0dc472 (diff)
downloadgnunet-df64e68d7a864d9204c44c82cc32696393161bb1.tar.gz
gnunet-df64e68d7a864d9204c44c82cc32696393161bb1.zip
-fix issues with multi-user setup and ARM
Diffstat (limited to 'src/arm/arm_api.c')
-rw-r--r--src/arm/arm_api.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c
index 6c0dec4a6..ee699739a 100644
--- a/src/arm/arm_api.c
+++ b/src/arm/arm_api.c
@@ -308,11 +308,12 @@ arm_termination_handler (void *cls, const struct GNUNET_MessageHeader *msg)
308/** 308/**
309 * Handler for ARM replies. 309 * Handler for ARM replies.
310 * 310 *
311 * @param cls our "struct GNUNET_ARM_Handle" 311 * @param cls our `struct GNUNET_ARM_Handle`
312 * @param msg the message received from the arm service 312 * @param msg the message received from the arm service
313 */ 313 */
314static void 314static void
315client_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg) 315client_notify_handler (void *cls,
316 const struct GNUNET_MessageHeader *msg)
316{ 317{
317 struct GNUNET_ARM_Handle *h = cls; 318 struct GNUNET_ARM_Handle *h = cls;
318 const struct GNUNET_ARM_Message *arm_msg; 319 const struct GNUNET_ARM_Message *arm_msg;
@@ -353,7 +354,9 @@ client_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
353 cm = find_cm_by_id (h, id); 354 cm = find_cm_by_id (h, id);
354 if (NULL == cm) 355 if (NULL == cm)
355 { 356 {
356 LOG (GNUNET_ERROR_TYPE_DEBUG, "Message with unknown id %llu\n", id); 357 LOG (GNUNET_ERROR_TYPE_DEBUG,
358 "Message with unknown id %llu\n",
359 id);
357 return; 360 return;
358 } 361 }
359 fail = GNUNET_NO; 362 fail = GNUNET_NO;
@@ -460,7 +463,7 @@ client_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
460 if (NULL != cm->list_cont) 463 if (NULL != cm->list_cont)
461 cm->list_cont (cm->cont_cls, GNUNET_ARM_REQUEST_SENT_OK, rcount, 464 cm->list_cont (cm->cont_cls, GNUNET_ARM_REQUEST_SENT_OK, rcount,
462 list); 465 list);
463 GNUNET_free (list); 466 GNUNET_free_non_null (list);
464 break; 467 break;
465 } 468 }
466 GNUNET_free (cm->msg); 469 GNUNET_free (cm->msg);