mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
1227. [bug] dns_lex_getmastertoken() now returns ISC_R_BADNUMBER
if a number was expected and some other token was found. [RT#2532]
This commit is contained in:
4
CHANGES
4
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]
|
1226. [func] Use EDNS for zone refresh queries. [RT #2551]
|
||||||
|
|
||||||
1225. [func] dns_message_setopt() no longer requires that
|
1225. [func] dns_message_setopt() no longer requires that
|
||||||
|
@@ -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.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>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -811,6 +811,8 @@ isc_lex_getmastertoken(isc_lex_t *lex, isc_token_t *token,
|
|||||||
if (token->type == isc_tokentype_eol ||
|
if (token->type == isc_tokentype_eol ||
|
||||||
token->type == isc_tokentype_eof)
|
token->type == isc_tokentype_eof)
|
||||||
return (ISC_R_UNEXPECTEDEND);
|
return (ISC_R_UNEXPECTEDEND);
|
||||||
|
if (expect == isc_tokentype_number)
|
||||||
|
return (ISC_R_BADNUMBER);
|
||||||
return (ISC_R_UNEXPECTEDTOKEN);
|
return (ISC_R_UNEXPECTEDTOKEN);
|
||||||
}
|
}
|
||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
|
Reference in New Issue
Block a user