]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer-ssl: fix coverty error (RESOURCE_LEAK) 3543/head
authorMats Klepsland <mats.klepsland@gmail.com>
Tue, 13 Nov 2018 19:06:50 +0000 (20:06 +0100)
committerMats Klepsland <mats.klepsland@gmail.com>
Wed, 14 Nov 2018 15:27:35 +0000 (16:27 +0100)
Bug #2677

src/app-layer-ssl.c

index a6219228dc37d9ae799f2fd97369ae62bf2fd8ca..0aa3fab2d5e4436ae44fea294433c266f9928e88 100644 (file)
@@ -1115,7 +1115,7 @@ static inline int TLSDecodeHSHelloExtensions(SSLState *ssl_state,
         ja3_elliptic_curves_pf = Ja3BufferInit();
         if (ja3_extensions == NULL || ja3_elliptic_curves == NULL ||
                 ja3_elliptic_curves_pf == NULL)
-            return -1;
+            goto error;
     }
 
     /* Extensions are optional (RFC5246 section 7.4.1.2) */