]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/snmp: do not bother to free a null pointer 11419/head 11432/head
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 2 Jul 2024 07:26:23 +0000 (09:26 +0200)
committerPhilippe Antoine <pantoine@oisf.net>
Thu, 4 Jul 2024 07:49:10 +0000 (09:49 +0200)
Ticket: 7134

src/detect-snmp-version.c

index 57359c091bd6bd5ca4d570f77e96711356004d2e..deb73b9bcd0deccb5bedb368b7b5c224e034f19c 100644 (file)
@@ -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