]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
oops, forgot to assign lctx->keep_lex.
authorBrian Wellington <source@isc.org>
Thu, 21 Feb 2002 00:56:14 +0000 (00:56 +0000)
committerBrian Wellington <source@isc.org>
Thu, 21 Feb 2002 00:56:14 +0000 (00:56 +0000)
lib/dns/master.c

index 26687c92d625debb5ae81b5a8f189da4559a833d..0e2059268df9146677cbd34d676c14b925939e3f 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: master.c,v 1.137 2002/02/21 00:51:22 marka Exp $ */
+/* $Id: master.c,v 1.138 2002/02/21 00:56:14 bwelling Exp $ */
 
 #include <config.h>
 
@@ -460,13 +460,15 @@ loadctx_create(isc_mem_t *mctx, unsigned int options, dns_name_t *top,
        if (result != ISC_R_SUCCESS) 
                goto cleanup_ctx;
 
-       if (lex != NULL)
+       if (lex != NULL) {
                lctx->lex = lex;
-       else {
+               lctx->keep_lex = ISC_TRUE;
+       } else {
                lctx->lex = NULL;
                result = isc_lex_create(mctx, TOKENSIZ, &lctx->lex);
                if (result != ISC_R_SUCCESS)
                        goto cleanup_inc;
+               lctx->keep_lex = ISC_FALSE;
                memset(specials, 0, sizeof(specials));
                specials['('] = 1;
                specials[')'] = 1;