aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/identity-provider/gnunet-idp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/identity-provider/gnunet-idp.c b/src/identity-provider/gnunet-idp.c
index cb82f42b8..267978d40 100644
--- a/src/identity-provider/gnunet-idp.c
+++ b/src/identity-provider/gnunet-idp.c
@@ -389,6 +389,7 @@ ego_iter_finished (void *cls)
389 389
390} 390}
391 391
392static int init = GNUNET_YES;
392 393
393static void 394static void
394ego_cb (void *cls, 395ego_cb (void *cls,
@@ -397,7 +398,10 @@ ego_cb (void *cls,
397 const char *name) 398 const char *name)
398{ 399{
399 if (NULL == name) { 400 if (NULL == name) {
400 GNUNET_SCHEDULER_add_now (&ego_iter_finished, NULL); 401 if (GNUNET_YES == init) {
402 init = GNUNET_NO;
403 GNUNET_SCHEDULER_add_now (&ego_iter_finished, NULL);
404 }
401 return; 405 return;
402 } 406 }
403 if (0 != strcmp (name, ego_name)) 407 if (0 != strcmp (name, ego_name))
@@ -415,6 +419,7 @@ run (void *cls,
415 ret = 0; 419 ret = 0;
416 if (NULL == ego_name) 420 if (NULL == ego_name)
417 { 421 {
422 ret = 1;
418 GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, 423 GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE,
419 _("Ego is required\n")); 424 _("Ego is required\n"));
420 return; 425 return;
@@ -422,6 +427,7 @@ run (void *cls,
422 427
423 if ( (NULL == attr_value) && (NULL != attr_name) ) 428 if ( (NULL == attr_value) && (NULL != attr_name) )
424 { 429 {
430 ret = 1;
425 GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, 431 GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE,
426 _("Attribute value missing!\n")); 432 _("Attribute value missing!\n"));
427 return; 433 return;
@@ -429,6 +435,7 @@ run (void *cls,
429 435
430 if ( (NULL == rp) && (NULL != issue_attrs) ) 436 if ( (NULL == rp) && (NULL != issue_attrs) )
431 { 437 {
438 ret = 1;
432 GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, 439 GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE,
433 _("Requesting party key is required!\n")); 440 _("Requesting party key is required!\n"));
434 return; 441 return;