1237. [bug] nslookup: "set q=type" failed.

This commit is contained in:
Mark Andrews
2002-03-20 18:20:03 +00:00
parent 8695d7b357
commit 7f20fd8ebb
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
1237. [bug] nslookup: "set q=type" failed.
1236. [bug] dns_rdata{class,type}_fromtext() didn't handle non
NULL terminated text regions. [RT #2588]

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: nslookup.c,v 1.95 2001/12/19 12:16:42 marka Exp $ */
/* $Id: nslookup.c,v 1.96 2002/03/20 18:20:03 marka Exp $ */
#include <config.h>
@@ -583,6 +583,9 @@ setoption(char *opt) {
} else if (strncasecmp(opt, "qu=", 3) == 0) {
if (testtype(&opt[3]))
safecpy(deftype, &opt[3], sizeof(deftype));
} else if (strncasecmp(opt, "q=", 2) == 0) {
if (testtype(&opt[2]))
safecpy(deftype, &opt[2], sizeof(deftype));
} else if (strncasecmp(opt, "domain=", 7) == 0) {
safecpy(domainopt, &opt[7], sizeof(domainopt));
set_search_domain(domainopt);