From 954e3e1f3ff9da4ee3ab3108f916a1df5e5548ec Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sat, 18 Jun 2022 15:33:43 +0200 Subject: [PATCH] smtp/mime: fix url extraction when no config is set --- src/app-layer-smtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."); }