Commit 20c07da4 authored by Mark Andrews's avatar Mark Andrews

Add DBC checks to named_checknames_get

parent ac9e2667
Pipeline #42540 passed with stages
in 33 minutes and 23 seconds
......@@ -352,6 +352,10 @@ named_checknames_get(const cfg_obj_t **maps, const char *which,
const cfg_obj_t *value;
int i;
REQUIRE(maps != NULL);
REQUIRE(which != NULL);
REQUIRE(obj != NULL && *obj == NULL);
for (i = 0;; i++) {
if (maps[i] == NULL) {
return (ISC_R_NOTFOUND);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment