mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 14:29:59 -04: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:
parent
90a16b3e65
commit
ced8a82503
1 changed files with 5 additions and 4 deletions
|
|
@ -1378,10 +1378,6 @@ plus_option(char *option) {
|
|||
fprintf(stderr, "Invalid option: +%s\n", option);
|
||||
usage();
|
||||
}
|
||||
|
||||
if (qmin && !fulltrace) {
|
||||
fatal("'+qmin' cannot be used without '+ns'");
|
||||
}
|
||||
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 qtype specified, use A
|
||||
|
|
|
|||
Loading…
Reference in a new issue