mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
fix consistency check for delv +ns and +qmin
the code to prevent +qmin from being used without +ns was in the wrong place, resulting in it only working correctly if +ns was specified first.
This commit is contained in:
@@ -1378,10 +1378,6 @@ plus_option(char *option) {
|
|||||||
fprintf(stderr, "Invalid option: +%s\n", option);
|
fprintf(stderr, "Invalid option: +%s\n", option);
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (qmin && !fulltrace) {
|
|
||||||
fatal("'+qmin' cannot be used without '+ns'");
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1730,6 +1726,11 @@ parse_args(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* check consistency */
|
||||||
|
if (qmin && !fulltrace) {
|
||||||
|
fatal("'+qmin' cannot be used without '+ns'");
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If no qname or qtype specified, search for root/NS
|
* If no qname or qtype specified, search for root/NS
|
||||||
* If no qtype specified, use A
|
* If no qtype specified, use A
|
||||||
|
Reference in New Issue
Block a user