mirror of https://github.com/OISF/suricata
output-json: avoid freeing caller-owned JSON builder
EveEmailLogJsonData() freed the provided SCJsonBuilder when SMTP state was unavailable, even though ownership remains with the caller. The caller may continue using the builder for cleanup after the function returns failure. Return failure without freeing the builder and add defensive NULL checks in EveSmtpDataLogger(). Signed-off-by: Urval Kheni <urvalkheni777@gmail.com>pull/15601/head
parent
0345b91ddd
commit
3b9dc5ad37
Loading…
Reference in New Issue