log/pcap: fix conditional pcap in tag mode

We were missing the first packet when using condition pcap logging
in tag mode as it was not tagged. As a result we were not getting
the stream data triggering the alert in the pcap file.
pull/7430/head
Eric Leblond 5 years ago committed by Victor Julien
parent 9f4d59b3f7
commit 8f0ef48e82

@ -252,7 +252,7 @@ static int PcapLogCondition(ThreadVars *tv, void *thread_data, const Packet *p)
}
break;
case LOGMODE_COND_TAG:
if (p->flags & PKT_HAS_TAG) {
if (p->flags & (PKT_HAS_TAG | PKT_FIRST_TAG)) {
return TRUE;
} else {
return FALSE;

Loading…
Cancel
Save