From: Andreas Ebner Date: Sun, 6 Oct 2019 10:57:52 +0000 (+0200) Subject: Proper print on add callback, fixed return value in .._start, both cases require... X-Git-Tag: v0.11.7~67 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5cc45c7ee6a3ac522e5a1f58010d4efdf4fd102f;p=oweals%2Fgnunet.git Proper print on add callback, fixed return value in .._start, both cases require same handling therefore same return value --- diff --git a/src/credential/gnunet-credential.c b/src/credential/gnunet-credential.c index 58f7cf50d..03b017208 100644 --- a/src/credential/gnunet-credential.c +++ b/src/credential/gnunet-credential.c @@ -489,6 +489,11 @@ add_continuation (void *cls, int32_t success, const char *emsg) struct GNUNET_NAMESTORE_QueueEntry **qe = cls; *qe = NULL; + if(GNUNET_OK == success) + printf ("Adding successful.\n"); + else + fprintf (stderr, "Error occured during adding, shutting down.\n"); + GNUNET_SCHEDULER_shutdown (); } diff --git a/src/credential/gnunet-service-credential.c b/src/credential/gnunet-service-credential.c index daffc0bb9..4753e8e3b 100644 --- a/src/credential/gnunet-service-credential.c +++ b/src/credential/gnunet-service-credential.c @@ -1261,7 +1261,7 @@ delegation_chain_bw_resolution_start (void *cls) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No delegates found\n"); send_lookup_response (vrh); - return 2; + return 1; } // Pre-check with vrh->dele_chain_.. if match issuer_key @@ -1343,7 +1343,7 @@ delegation_chain_fw_resolution_start (void *cls) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No delegations found\n"); send_lookup_response (vrh); - return 2; + return 1; } // Pre-check with vrh->dele_chain_.. if match issuer_key