From abc8bd11b95568fccebd6dda0f4b8ac81d617d87 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Thu, 6 Aug 2020 10:28:55 -0400 Subject: [PATCH] output/ssh: Use correct file context This commit corrects an issue with the SSH output module that resulted in a SEGV when SSH output is logged. --- src/output-json-ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output-json-ssh.c b/src/output-json-ssh.c index cc9210fb06..b8bf1a31f1 100644 --- a/src/output-json-ssh.c +++ b/src/output-json-ssh.c @@ -90,7 +90,7 @@ static int JsonSshLogger(ThreadVars *tv, void *thread_data, const Packet *p, goto end; } jb_close(js); - OutputJsonBuilderBuffer(js, ssh_ctx->file_ctx, &aft->buffer); + OutputJsonBuilderBuffer(js, aft->file_ctx, &aft->buffer); end: jb_free(js); -- 2.47.2