From 0ef3bff4950334ba3a6ef5ca56c1bdc16f4164c6 Mon Sep 17 00:00:00 2001 From: Lukas Sismis Date: Fri, 25 Apr 2025 14:33:00 +0200 Subject: [PATCH] detect-engine: check return value of SCGetConf Ticket: 7634 coverity id: 1645571 --- src/detect-engine.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/detect-engine.c b/src/detect-engine.c index c2243d88c9..a09502f572 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -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; } -- 2.47.2