[ldns-users] ldns-verify-zone: General memory error at 5 if -k is missing

Tony Finch dot at dotat.at
Wed Apr 30 13:07:37 UTC 2014


Emil Natan <shlyoko at gmail.com> wrote:

> Tested with the development version and it really reports "no SOA in the
> zone", but in this case it's misleading because the zonefile actually has
> SOA record and as I mentioned, the problem was a missing flag (-k) before
> the second key-file parameter.

What you want is:

diff --git a/examples/ldns-verify-zone.c b/examples/ldns-verify-zone.c
index 156eb64..5b26116 100644
--- a/examples/ldns-verify-zone.c
+++ b/examples/ldns-verify-zone.c
@@ -833,6 +833,12 @@ main(int argc, char **argv)

 	if (argc == 0) {
 		fp = stdin;
+	} else if (argc > 1) {
+		if (verbosity > 0) {
+			fprintf(myerr, "Error: cannot check more than "
+				"one zone at a time\n");
+		}
+		exit(EXIT_FAILURE);
 	} else {
 		filename = argv[0];

Tony.
-- 
f.anthony.n.finch  <dot at dotat.at>  http://dotat.at/
Trafalgar: Northerly or northwesterly 4 or 5, increasing 6 in southeast.
Moderate or rough. Occasional drizzle. Moderate or good.



More information about the ldns-users mailing list