[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix |
Date: |
Fri, 04 May 2018 12:39:19 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 863fdb866 fix
863fdb866 is described below
commit 863fdb86608fa179eaef183d5b93868884440f88
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Fri May 4 12:39:15 2018 +0200
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;
--
To stop receiving notification emails like this one, please contact
address@hidden