Skip to content

Commit

Permalink
Minor fix for ZMQ decompression
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Sep 6, 2024
1 parent 6283d0c commit 9f955ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZMQCollectorInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ void ZMQCollectorInterface::collect_flows() {
if(received_compressed_size == 0) /* Old nProbe: do the best to guess the size */
uLen = uncompressed_len = ndpi_min(ndpi_max(10 * size, MAX_ZMQ_FLOW_BUF), MAX_ZMQ_FLOW_BUF/3); /* Compatibility mode */
else
uLen = uncompressed_len = received_compressed_size; /* We know already the uncompressed size */
uLen = uncompressed_len = received_compressed_size + 16; /* We know already the uncompressed size */

uncompressed = (char *)malloc(uncompressed_len + 1);

Expand Down

0 comments on commit 9f955ce

Please sign in to comment.