From: Eric Leblond Date: Sat, 18 Jun 2022 13:33:43 +0000 (+0200) Subject: smtp/mime: fix url extraction when no config is set X-Git-Tag: suricata-7.0.0-beta1~296 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=954e3e1f3ff9da4ee3ab3108f916a1df5e5548ec;p=thirdparty%2Fsuricata.git smtp/mime: fix url extraction when no config is set --- diff --git a/src/app-layer-smtp.c b/src/app-layer-smtp.c index efc918df7b..449dd30298 100644 --- a/src/app-layer-smtp.c +++ b/src/app-layer-smtp.c @@ -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."); }