mirror of https://github.com/OISF/suricata
util/thash: fix memcap consolidate function
The function THashConsolidateMemcap is used to allow to load a dataset even when the memcap is not set. But the implementation was in fact resetting the memcap value to the max of memory usaga after loading and default memcap. As a result, the function was resetting memcap to the default memcap even if a huge memcap was set in the dataset definition. In the case of dataset where we add to the set it was leading to memcap limit hitting despite the settings of memcap by the user. This patch udpates the code to set the final memcap value to the max of memory usage after loading and set memcap.pull/5891/head
parent
b3b64803e5
commit
6ef28d0a70
Loading…
Reference in New Issue