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.
pull/5282/head
Jeff Lucovsky 5 years ago committed by Victor Julien
parent e10d107415
commit abc8bd11b9

@ -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);

Loading…
Cancel
Save