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.
fprintf(stderr, "Invalid option: +%s\n", option);
usage();
}
-
- if (qmin && !fulltrace) {
- fatal("'+qmin' cannot be used without '+ns'");
- }
return;
}
}
}
+ /* 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