2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

parentheses in strings were handled incorrectly.

This commit is contained in:
Brian Wellington
2000-11-18 00:54:19 +00:00
parent 89beab7594
commit 66a39bda9c

View File

@@ -15,7 +15,7 @@
* 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>
@@ -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);
if ((options & ISC_LEXOPT_DNSMULTILINE) != 0 && c == '(')
source->pushback_parens++;
if ((options & ISC_LEXOPT_DNSMULTILINE) != 0 && c == ')')
source->pushback_parens--;
return (ISC_R_SUCCESS);
}