diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-05-04 12:39:15 +0200 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-05-04 12:39:15 +0200 |
commit | 863fdb86608fa179eaef183d5b93868884440f88 (patch) | |
tree | 8d91c3e06fbdcea63efb4975272f317b19175fc8 | |
parent | d83553b169ab9221c9daaa010e2aad2b92583fd8 (diff) |
fix
-rw-r--r-- | src/identity-provider/gnunet-idp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/identity-provider/gnunet-idp.c b/src/identity-provider/gnunet-idp.c index cb82f42b8b..267978d40a 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; |