Proper print on add callback, fixed return value in .._start, both cases require...
authorAndreas Ebner <a.e.bner@web.de>
Sun, 6 Oct 2019 10:57:52 +0000 (12:57 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Mon, 7 Oct 2019 10:18:21 +0000 (12:18 +0200)
src/credential/gnunet-credential.c
src/credential/gnunet-service-credential.c

index 58f7cf50d2968c5875cf7b1bd21a16b599680b11..03b01720893a2510e586a02ecff839e7e807bacc 100644 (file)
@@ -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 ();
 }
 
index daffc0bb9adae9f27b83cc97ece64e46354ecc40..4753e8e3b24ce32fab453635eacdabfe6c2b877f 100644 (file)
@@ -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