From 72ee505aa025b53956c6a3c2428c36db904207e6 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Thu, 3 Aug 2023 15:18:51 +0530 Subject: [PATCH] conf: check if node value is Null Bug: #6303, #6302 --- src/conf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/conf.c b/src/conf.c index 58a1db5c12..f2bf978e8c 100644 --- a/src/conf.c +++ b/src/conf.c @@ -354,6 +354,8 @@ int ConfGetChildValue(const ConfNode *base, const char *name, const char **vptr) return 0; } else { + if (node->val == NULL) + return 0; *vptr = node->val; return 1; } -- 2.47.2