From: Victor Julien Date: Thu, 2 Aug 2018 13:10:15 +0000 (+0200) Subject: eve/smb: use flow direction for tuple X-Git-Tag: suricata-4.1.0-rc2~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3440%2Fhead;p=thirdparty%2Fsuricata.git eve/smb: use flow direction for tuple --- diff --git a/src/output-json-smb.c b/src/output-json-smb.c index 4be4376113..e31dcb8993 100644 --- a/src/output-json-smb.c +++ b/src/output-json-smb.c @@ -77,11 +77,10 @@ json_t *JsonSMBAddMetadata(const Flow *f, uint64_t tx_id) static int JsonSMBLogger(ThreadVars *tv, void *thread_data, const Packet *p, Flow *f, void *state, void *tx, uint64_t tx_id) { - //SMBTransaction *smbtx = tx; LogSMBLogThread *thread = thread_data; json_t *js, *smbjs; - js = CreateJSONHeader((Packet *)p, 0, "smb"); + js = CreateJSONHeader(p, LOG_DIR_FLOW, "smb"); if (unlikely(js == NULL)) { return TM_ECODE_FAILED; }