detect-engine: check return value of SCGetConf

Ticket: 7634
coverity id: 1645571
pull/13383/head
Lukas Sismis 1 year ago committed by Victor Julien
parent e3e24cfb3d
commit 0ef3bff495

@ -2457,9 +2457,7 @@ const char *DetectEngineMpmCachingGetPath(void)
char yamlpath[] = "detect.sgh-mpm-caching-path";
const char *strval = NULL;
(void)SCConfGet(yamlpath, &strval);
if (strval != NULL) {
if (SCConfGet(yamlpath, &strval) == 1 && strval != NULL) {
return strval;
}

Loading…
Cancel
Save