From 6e209ab5050f8d285381c1be4117f918a496b8d0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 6 Apr 2019 16:37:42 +0200 Subject: fix #5677 --- src/namestore/gnunet-zoneimport.c | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/namestore/gnunet-zoneimport.c b/src/namestore/gnunet-zoneimport.c index 4f0f848a4..e7d040ec4 100644 --- a/src/namestore/gnunet-zoneimport.c +++ b/src/namestore/gnunet-zoneimport.c @@ -2044,26 +2044,29 @@ main (int argc, &minimum_expiration_time), GNUNET_GETOPT_OPTION_END }; + int ret; if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, - &argc, &argv)) + &argc, &argv)) return 2; - GNUNET_PROGRAM_run (argc, - argv, - "gnunet-zoneimport", - "import DNS zone into namestore", - options, - &run, - NULL); + if (GNUNET_OK != + (ret = GNUNET_PROGRAM_run (argc, + argv, + "gnunet-zoneimport", + "import DNS zone into namestore", + options, + &run, + NULL))) + return ret; GNUNET_free ((void*) argv); fprintf (stderr, "Rejected %u names, had %u cached, did %u lookups, stored %u record sets\n" - "Found %u records, %u lookups failed, %u/%u pending on shutdown\n", - rejects, - cached, + "Found %u records, %u lookups failed, %u/%u pending on shutdown\n", + rejects, + cached, lookups, - record_sets, + record_sets, records, failures, pending, -- cgit v1.2.3