[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: add -z option to gnunet-nam
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: add -z option to gnunet-namestore-fcfsd |
Date: |
Thu, 07 Jun 2018 16:42:25 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 20eaa2aee add -z option to gnunet-namestore-fcfsd
20eaa2aee is described below
commit 20eaa2aeedcc804a14f5b5265321ad41516b11b9
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Jun 7 16:42:23 2018 +0200
add -z option to gnunet-namestore-fcfsd
---
src/namestore/gnunet-namestore-fcfsd.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/namestore/gnunet-namestore-fcfsd.c
b/src/namestore/gnunet-namestore-fcfsd.c
index e0c04e6f1..3e3e598e7 100644
--- a/src/namestore/gnunet-namestore-fcfsd.c
+++ b/src/namestore/gnunet-namestore-fcfsd.c
@@ -1011,12 +1011,16 @@ identity_cb (void *cls,
(void) cls;
(void) ctx;
- (void) name;
- id_op = NULL;
+ if (NULL == name)
+ return;
+ if (0 != strcmp (name,
+ zone))
+ return;
if (NULL == ego)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
_("No ego configured for `fcfsd` subsystem\n"));
+ GNUNET_SCHEDULER_shutdown ();
return;
}
fcfs_zone_pkey = *GNUNET_IDENTITY_ego_get_private_key (ego);
@@ -1085,17 +1089,14 @@ run (void *cls,
return;
}
identity = GNUNET_IDENTITY_connect (cfg,
- NULL, NULL);
+ &identity_cb,
+ NULL);
if (NULL == identity)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
_("Failed to connect to identity\n"));
return;
}
- id_op = GNUNET_IDENTITY_get (identity,
- zone,
- &identity_cb,
- NULL);
GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
NULL);
}
--
To stop receiving notification emails like this one, please contact
address@hidden