Added missing ending indicator in object members validation lists.

This fixes undefined behaviour due to array over-read if an unknown parameter
is specified in an uidmap, a gidmap, or a php target object.
This commit is contained in:
Valentin Bartenev
2020-07-24 20:25:15 +03:00
parent 29cf3cc6c1
commit 2a71a8a9f4

View File

@@ -550,6 +550,8 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_app_procmap_members[] = {
NXT_CONF_VLDT_INTEGER,
NULL,
NULL },
NXT_CONF_VLDT_END
};
#endif
@@ -691,7 +693,9 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_php_target_members[] = {
{ nxt_string("index"),
NXT_CONF_VLDT_STRING,
NULL,
NULL }
NULL },
NXT_CONF_VLDT_END
};