]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
smtp/mime: fix url extraction when no config is set
authorEric Leblond <el@stamus-networks.com>
Sat, 18 Jun 2022 13:33:43 +0000 (15:33 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 9 Aug 2022 08:54:18 +0000 (10:54 +0200)
src/app-layer-smtp.c

index efc918df7be6a985bb544c8a2e80d0046f7e593d..449dd30298b9e0f48732ca890ab1b38b6e304058 100644 (file)
@@ -337,7 +337,7 @@ static void SMTPConfigure(void) {
             if (unlikely(seq_node->name == NULL)) {
                 FatalError(SC_ERR_FATAL, "SCStrdup failure.");
             }
-            scheme->val = SCStrdup("http");
+            scheme->val = SCStrdup("http://");
             if (unlikely(scheme->val == NULL)) {
                 FatalError(SC_ERR_FATAL, "SCStrdup failure.");
             }