]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1227. [bug] dns_lex_getmastertoken() now returns ISC_R_BADNUMBER
authorMark Andrews <marka@isc.org>
Mon, 11 Mar 2002 05:38:29 +0000 (05:38 +0000)
committerMark Andrews <marka@isc.org>
Mon, 11 Mar 2002 05:38:29 +0000 (05:38 +0000)
                       if a number was expected and some other token was
                       found. [RT#2532]

CHANGES
lib/isc/lex.c

diff --git a/CHANGES b/CHANGES
index a50335aa2d77c07533b42db5bbfb02f312bcf8c7..93102bab8d106bea2109e7ed73216e4bc8c87b78 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+1227.  [bug]           dns_lex_getmastertoken() now returns ISC_R_BADNUMBER
+                       if a number was expected and some other token was
+                       found. [RT#2532]
+
 1226.  [func]          Use EDNS for zone refresh queries. [RT #2551]
 
 1225.  [func]          dns_message_setopt() no longer requires that
index d0d7dfb6031dd4fa0c5b565784fda783dbdf8a0e..1a83b981e96d546e95cee0224eb00642248b8c2e 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: lex.c,v 1.74 2002/02/21 20:04:01 gson Exp $ */
+/* $Id: lex.c,v 1.75 2002/03/11 05:38:27 marka Exp $ */
 
 #include <config.h>
 
@@ -811,6 +811,8 @@ isc_lex_getmastertoken(isc_lex_t *lex, isc_token_t *token,
                if (token->type == isc_tokentype_eol ||
                    token->type == isc_tokentype_eof)
                        return (ISC_R_UNEXPECTEDEND);
+               if (expect == isc_tokentype_number)
+                       return (ISC_R_BADNUMBER);
                return (ISC_R_UNEXPECTEDTOKEN);
        }
        return (ISC_R_SUCCESS);