mirror of https://github.com/OISF/suricata
output-json: fix duplicate logging
This patches is fixing a issue in the OutputJSONBuffer function. It was writing to file the content of the buffer starting from the start to the final offset. But as the writing is done for each JSON string we are duplicating the previous events if we are reusing the same buffer. Duplication was for example triggered when we have multiple alerts attached to a packet. In the case of two alerts, the first one was logged twice more as the second one.pull/1279/head
parent
dc5e2a515c
commit
969abc2ccd
Loading…
Reference in New Issue