1462. [bug] parse_sizeval() failed to check the token type.

[RT #5586]
This commit is contained in:
Mark Andrews
2003-04-17 03:26:58 +00:00
parent 163547c0c0
commit 603658ea65
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
1462. [bug] parse_sizeval() failed to check the token type.
[RT #5586]
1461. [bug] Remove deadlock from rbtdb code. [RT #5999]
1460. [bug] inet_pton() failed to reject certian malformed

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: namedconf.c,v 1.20 2003/02/27 05:12:45 marka Exp $ */
/* $Id: namedconf.c,v 1.21 2003/04/17 03:26:58 marka Exp $ */
#include <config.h>
@@ -928,6 +928,10 @@ parse_sizeval(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret) {
UNUSED(type);
CHECK(cfg_gettoken(pctx, 0));
if (pctx->token.type != isc_tokentype_string) {
result = ISC_R_UNEXPECTEDTOKEN;
goto cleanup;
}
CHECK(parse_unitstring(TOKEN_STRING(pctx), &val));
CHECK(cfg_create_obj(pctx, &cfg_type_uint64, &obj));