aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-namestore-fcfsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/gnunet-namestore-fcfsd.c')
-rw-r--r--src/namestore/gnunet-namestore-fcfsd.c15
1 files 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,
1011 1011
1012 (void) cls; 1012 (void) cls;
1013 (void) ctx; 1013 (void) ctx;
1014 (void) name; 1014 if (NULL == name)
1015 id_op = NULL; 1015 return;
1016 if (0 != strcmp (name,
1017 zone))
1018 return;
1016 if (NULL == ego) 1019 if (NULL == ego)
1017 { 1020 {
1018 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1021 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
1019 _("No ego configured for `fcfsd` subsystem\n")); 1022 _("No ego configured for `fcfsd` subsystem\n"));
1023 GNUNET_SCHEDULER_shutdown ();
1020 return; 1024 return;
1021 } 1025 }
1022 fcfs_zone_pkey = *GNUNET_IDENTITY_ego_get_private_key (ego); 1026 fcfs_zone_pkey = *GNUNET_IDENTITY_ego_get_private_key (ego);
@@ -1085,17 +1089,14 @@ run (void *cls,
1085 return; 1089 return;
1086 } 1090 }
1087 identity = GNUNET_IDENTITY_connect (cfg, 1091 identity = GNUNET_IDENTITY_connect (cfg,
1088 NULL, NULL); 1092 &identity_cb,
1093 NULL);
1089 if (NULL == identity) 1094 if (NULL == identity)
1090 { 1095 {
1091 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1096 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
1092 _("Failed to connect to identity\n")); 1097 _("Failed to connect to identity\n"));
1093 return; 1098 return;
1094 } 1099 }
1095 id_op = GNUNET_IDENTITY_get (identity,
1096 zone,
1097 &identity_cb,
1098 NULL);
1099 GNUNET_SCHEDULER_add_shutdown (&do_shutdown, 1100 GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
1100 NULL); 1101 NULL);
1101} 1102}