diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-04-06 16:37:42 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-04-06 16:37:42 +0200 |
commit | 6e209ab5050f8d285381c1be4117f918a496b8d0 (patch) | |
tree | b4f498e83e24845321aa55adacd788f9df9da810 | |
parent | 14af0dbfceefe615ccc46da8358a38d6bf0164eb (diff) |
fix #5677
-rw-r--r-- | src/namestore/gnunet-zoneimport.c | 27 |
1 files 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, |