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

Willem Toorop willem at nlnetlabs.nl
Wed Apr 30 13:36:05 UTC 2014


:( greylisting costed me 10 minutes redundant activity.  Ah well...

op 30-04-14 15:07, Tony Finch schreef:
> 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.
> 




More information about the ldns-users mailing list