]> 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 02:27:46 +0000 (02: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.

(cherry picked from commit 2e1f933d659561966dc7876356bf3a63b5b797a2)

bin/tools/named-rrchecker.c

index a576cc6963fb899a009585d0630813a6961f3e7d..82234708772e20a9e272090301f5b524e4336c4d 100644 (file)
@@ -179,7 +179,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);
 
        RUNTIME_CHECK(isc_lex_openstream(lex, stdin) == ISC_R_SUCCESS);