diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2021-11-30 10:55:57 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-01-03 17:50:14 +0100 |
commit | bba33e0219b9a12aaf2bdd96315bd5c95026fa84 (patch) | |
tree | d545ef177d2572842c23e200da8de0a93d06f71a /output/pcap | |
parent | 233e93b4742f340fb427046e874f28472a97dd21 (diff) |
output: JSON: fix possible leak in error-handling.
The `realloc` extending the buffer containing the JSON to allow us to
insert a final new-line may fail. Therefore, we need to assign the
return-value to a temporary variable or we will not able to free the
existing buffer on error.
Use the correct type for `buflen`.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'output/pcap')
0 files changed, 0 insertions, 0 deletions