From 4f91c629f4e07bb18d5fd3228204f82eb0cfb17d Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Tue, 2 Jul 2024 09:26:23 +0200 Subject: [PATCH] detect/snmp: do not bother to free a null pointer Ticket: 7134 --- src/detect-snmp-version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-snmp-version.c b/src/detect-snmp-version.c index 57359c091b..deb73b9bcd 100644 --- a/src/detect-snmp-version.c +++ b/src/detect-snmp-version.c @@ -140,7 +140,7 @@ static int DetectSNMPVersionSetup (DetectEngineCtx *de_ctx, Signature *s, dd = DetectSNMPVersionParse(rawstr); if (dd == NULL) { SCLogError("Parsing \'%s\' failed", rawstr); - goto error; + return -1; } /* okay so far so good, lets get this into a SigMatch -- 2.47.2