From 273167f0ed0b8c8a21588440743c40a2230c594d Mon Sep 17 00:00:00 2001 From: jiangxiaoming Date: Sat, 14 May 2022 10:56:09 +0800 Subject: [PATCH] stmp: missing node name for default scheme 'http' Missing node name will lead to ConfDump() crash --- src/app-layer-smtp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app-layer-smtp.c b/src/app-layer-smtp.c index 6cda7cd8fbc3..7fd968755e06 100644 --- a/src/app-layer-smtp.c +++ b/src/app-layer-smtp.c @@ -315,6 +315,7 @@ static void SMTPConfigure(void) { if (unlikely(seq_node->name == NULL)) { FatalError(SC_ERR_FATAL, "SCStrdup failure."); } + scheme->name = SCStrdup("0"); scheme->val = SCStrdup("http"); if (unlikely(scheme->val == NULL)) { FatalError(SC_ERR_FATAL, "SCStrdup failure.");