config: check return value of dotted override

Fixes commit fbb0d2b0f4.
pull/8477/head
Jason Ish 3 years ago
parent 64cb687a65
commit 84d1ed58bb

@ -304,6 +304,10 @@ ConfYamlParse(yaml_parser_t *parser, ConfNode *parent, int inseq, int rlevel)
if (strchr(value, '.') != NULL) { if (strchr(value, '.') != NULL) {
node = ConfNodeGetNodeOrCreate(parent, value, 0); node = ConfNodeGetNodeOrCreate(parent, value, 0);
if (node == NULL) {
/* Error message already logged. */
goto fail;
}
} else { } else {
ConfNode *existing = ConfNodeLookupChild(parent, value); ConfNode *existing = ConfNodeLookupChild(parent, value);
if (existing != NULL) { if (existing != NULL) {

Loading…
Cancel
Save