]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Extend named-rrchecker multi-line parsing support
authorMark Andrews <marka@isc.org>
Fri, 30 May 2025 03:03:16 +0000 (13:03 +1000)
committerMark Andrews <marka@isc.org>
Tue, 3 Jun 2025 00:27:03 +0000 (00:27 +0000)
named-rrchecker now parses the braces which support multi-line input
from the beginning of the input rather than only when reading the
data fields of the record.

bin/tools/named-rrchecker.c

index 71023bb92650159cbc2a203f58a1d01333778597..be7a14016e4c7f5b2a45b7cf33e89bb9cd53b410 100644 (file)
@@ -181,7 +181,7 @@ main(int argc, char *argv[]) {
        specials[')'] = 1;
        specials['"'] = 1;
        isc_lex_setspecials(lex, specials);
-       options = ISC_LEXOPT_EOL;
+       options = ISC_LEXOPT_EOL | ISC_LEXOPT_DNSMULTILINE;
        isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE);
 
        isc_lex_openstream(lex, stdin);