From: Shivani Bhardwaj Date: Thu, 3 Aug 2023 09:48:51 +0000 (+0530) Subject: conf: check if node value is Null X-Git-Tag: suricata-7.0.2~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72ee505aa025b53956c6a3c2428c36db904207e6;p=thirdparty%2Fsuricata.git conf: check if node value is Null Bug: #6303, #6302 --- 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; }