mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 08:35:31 +00:00
Don't allow type 0 to be used in a define.
This commit is contained in:
@@ -175,6 +175,7 @@ isc_symtab_define(isc_symtab_t *symtab, char *key, unsigned int type,
|
|||||||
|
|
||||||
REQUIRE(VALID_SYMTAB(symtab));
|
REQUIRE(VALID_SYMTAB(symtab));
|
||||||
REQUIRE(key != NULL);
|
REQUIRE(key != NULL);
|
||||||
|
REQUIRE(type != 0);
|
||||||
|
|
||||||
FIND(symtab, key, type, bucket, elt);
|
FIND(symtab, key, type, bucket, elt);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user