mirror of https://github.com/OISF/suricata
flow/manager: fix threading/locking coverity warnings
In flow manager and recycler timed condition wait loops. First check loop break conditions before entiring the timed wait. CID 1638284: (#1 of 1): Indefinite wait (BAD_CHECK_OF_WAIT_COND) dead_wait: A wait is performed without ensuring that the condition is not already satisfied while holding lock flow_manager_ctrl_mutex. This can cause a deadlock if the notification happens before the lock is acquired. CID 1638293: (#1 of 1): Indefinite wait (BAD_CHECK_OF_WAIT_COND) dead_wait: A wait is performed without ensuring that the condition is not already satisfied while holding lock flow_recycler_ctrl_mutex. This can cause a deadlock if the notification happens before the lock is acquired.pull/13518/head
parent
f332b3e571
commit
5aaef39c8c
Loading…
Reference in New Issue