events: reset logged event

Otherwise, if we log a first app_layer_event, then reset
with AppLayerDecoderEventsResetEvents for a new packet,
then get another event, it does not get logged

Ticket: #5391
(cherry picked from commit b0298dd046)
pull/7605/head
Philippe Antoine 4 years ago committed by Victor Julien
parent c08a929de1
commit 48206f373d

@ -140,8 +140,10 @@ void AppLayerDecoderEventsSetEvent(Flow *f, uint8_t event)
void AppLayerDecoderEventsResetEvents(AppLayerDecoderEvents *events)
{
if (events != NULL)
if (events != NULL) {
events->cnt = 0;
events->event_last_logged = 0;
}
}

Loading…
Cancel
Save