2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

2535. [bug] dig +showsearh and +trace interacted badly. [RT #19091]

This commit is contained in:
Mark Andrews 2009-01-22 05:06:33 +00:00
parent 83b86f3936
commit 00f8377316
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,5 @@
2535. [bug] dig +showsearh and +trace interacted badly. [RT #19091]
2534. [func] Check NAPTR records regular expressions and 2534. [func] Check NAPTR records regular expressions and
replacement strings to ensure they are syntactically replacement strings to ensure they are syntactically
valid and consistant. [RT #18168] valid and consistant. [RT #18168]

View File

@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: dig.c,v 1.227 2009/01/17 23:47:42 tbox Exp $ */ /* $Id: dig.c,v 1.228 2009/01/22 05:06:33 marka Exp $ */
/*! \file */ /*! \file */
@ -801,7 +801,9 @@ plus_option(char *option, isc_boolean_t is_batchfile,
switch (cmd[1]) { switch (cmd[1]) {
case 'e': /* defname */ case 'e': /* defname */
FULLCHECK("defname"); FULLCHECK("defname");
if (!lookup->trace) {
usesearch = state; usesearch = state;
}
break; break;
case 'n': /* dnssec */ case 'n': /* dnssec */
FULLCHECK("dnssec"); FULLCHECK("dnssec");
@ -941,7 +943,9 @@ plus_option(char *option, isc_boolean_t is_batchfile,
switch (cmd[1]) { switch (cmd[1]) {
case 'e': /* search */ case 'e': /* search */
FULLCHECK("search"); FULLCHECK("search");
if (!lookup->trace) {
usesearch = state; usesearch = state;
}
break; break;
case 'h': case 'h':
if (cmd[2] != 'o') if (cmd[2] != 'o')
@ -962,8 +966,10 @@ plus_option(char *option, isc_boolean_t is_batchfile,
break; break;
case 'w': /* showsearch */ case 'w': /* showsearch */
FULLCHECK("showsearch"); FULLCHECK("showsearch");
if (!lookup->trace) {
showsearch = state; showsearch = state;
usesearch = state; usesearch = state;
}
break; break;
default: default:
goto invalid_option; goto invalid_option;
@ -1022,6 +1028,7 @@ plus_option(char *option, isc_boolean_t is_batchfile,
lookup->section_additional = ISC_FALSE; lookup->section_additional = ISC_FALSE;
lookup->section_authority = ISC_TRUE; lookup->section_authority = ISC_TRUE;
lookup->section_question = ISC_FALSE; lookup->section_question = ISC_FALSE;
usesearch = ISC_FALSE;
} }
break; break;
case 'i': /* tries */ case 'i': /* tries */