tls-json: make tls events direction sensitive

Previously the src/dest ips in TLS events would differ between
IDS and IPS modes. Make the header creation direction sensitive
so they are identical in both modes.
pull/2302/head
Jason Ish 9 years ago committed by Victor Julien
parent c0f93503b7
commit 44c846f2f8

@ -160,7 +160,7 @@ static int JsonTlsLogger(ThreadVars *tv, void *thread_data, const Packet *p,
ssl_state->server_connp.cert0_subject == NULL)
return 0;
json_t *js = CreateJSONHeader((Packet *)p, 0, "tls");
json_t *js = CreateJSONHeader((Packet *)p, 1, "tls");
if (unlikely(js == NULL))
return 0;

Loading…
Cancel
Save