From 863fdb86608fa179eaef183d5b93868884440f88 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Fri, 4 May 2018 12:39:15 +0200 Subject: [PATCH] fix --- src/identity-provider/gnunet-idp.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) } +static int init = GNUNET_YES; static void ego_cb (void *cls, @@ -397,7 +398,10 @@ ego_cb (void *cls, const char *name) { if (NULL == name) { - GNUNET_SCHEDULER_add_now (&ego_iter_finished, NULL); + if (GNUNET_YES == init) { + init = GNUNET_NO; + GNUNET_SCHEDULER_add_now (&ego_iter_finished, NULL); + } return; } if (0 != strcmp (name, ego_name)) @@ -415,6 +419,7 @@ run (void *cls, ret = 0; if (NULL == ego_name) { + ret = 1; GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, _("Ego is required\n")); return; @@ -422,6 +427,7 @@ run (void *cls, if ( (NULL == attr_value) && (NULL != attr_name) ) { + ret = 1; GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, _("Attribute value missing!\n")); return; @@ -429,6 +435,7 @@ run (void *cls, if ( (NULL == rp) && (NULL != issue_attrs) ) { + ret = 1; GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, _("Requesting party key is required!\n")); return; -- 2.25.1