mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
2535. [bug] dig +showsearh and +trace interacted badly. [RT #19091]
This commit is contained in:
parent
83b86f3936
commit
00f8377316
2
CHANGES
2
CHANGES
@ -1,3 +1,5 @@
|
||||
2535. [bug] dig +showsearh and +trace interacted badly. [RT #19091]
|
||||
|
||||
2534. [func] Check NAPTR records regular expressions and
|
||||
replacement strings to ensure they are syntactically
|
||||
valid and consistant. [RT #18168]
|
||||
|
@ -15,7 +15,7 @@
|
||||
* 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 */
|
||||
|
||||
@ -801,7 +801,9 @@ plus_option(char *option, isc_boolean_t is_batchfile,
|
||||
switch (cmd[1]) {
|
||||
case 'e': /* defname */
|
||||
FULLCHECK("defname");
|
||||
usesearch = state;
|
||||
if (!lookup->trace) {
|
||||
usesearch = state;
|
||||
}
|
||||
break;
|
||||
case 'n': /* dnssec */
|
||||
FULLCHECK("dnssec");
|
||||
@ -941,7 +943,9 @@ plus_option(char *option, isc_boolean_t is_batchfile,
|
||||
switch (cmd[1]) {
|
||||
case 'e': /* search */
|
||||
FULLCHECK("search");
|
||||
usesearch = state;
|
||||
if (!lookup->trace) {
|
||||
usesearch = state;
|
||||
}
|
||||
break;
|
||||
case 'h':
|
||||
if (cmd[2] != 'o')
|
||||
@ -962,8 +966,10 @@ plus_option(char *option, isc_boolean_t is_batchfile,
|
||||
break;
|
||||
case 'w': /* showsearch */
|
||||
FULLCHECK("showsearch");
|
||||
showsearch = state;
|
||||
usesearch = state;
|
||||
if (!lookup->trace) {
|
||||
showsearch = state;
|
||||
usesearch = state;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
goto invalid_option;
|
||||
@ -1022,6 +1028,7 @@ plus_option(char *option, isc_boolean_t is_batchfile,
|
||||
lookup->section_additional = ISC_FALSE;
|
||||
lookup->section_authority = ISC_TRUE;
|
||||
lookup->section_question = ISC_FALSE;
|
||||
usesearch = ISC_FALSE;
|
||||
}
|
||||
break;
|
||||
case 'i': /* tries */
|
||||
|
Loading…
x
Reference in New Issue
Block a user