mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 23:55:27 +00:00
parentheses in strings were handled incorrectly.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: lex.c,v 1.48 2000/11/17 00:34:37 bwelling Exp $ */
|
/* $Id: lex.c,v 1.49 2000/11/18 00:54:19 bwelling Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -355,6 +355,8 @@ pushandgrow(isc_lex_t *lex, inputsource *source, int c, unsigned int options) {
|
|||||||
isc_buffer_putuint8(source->pushback, (isc_uint8_t)c);
|
isc_buffer_putuint8(source->pushback, (isc_uint8_t)c);
|
||||||
if ((options & ISC_LEXOPT_DNSMULTILINE) != 0 && c == '(')
|
if ((options & ISC_LEXOPT_DNSMULTILINE) != 0 && c == '(')
|
||||||
source->pushback_parens++;
|
source->pushback_parens++;
|
||||||
|
if ((options & ISC_LEXOPT_DNSMULTILINE) != 0 && c == ')')
|
||||||
|
source->pushback_parens--;
|
||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user