mirror of https://github.com/OISF/suricata
unix-manager: fix crash when client disconnect
This patch fixes an issue in unix socket handling. It is possible that a socket did disconnect when analysing a command and because the data treatment is done in a loop on clients this was leading to a update of the list of clients during the loop. So we need in fact to use TAILQ_FOREACH_SAFE instead of TAILQ_FOREACH. Reported-by: Luigi Sandon <luigi.sandon@gmail.com> Fix-suggested-by: Luigi Sandon <luigi.sandon@gmail.com>pull/1001/head
parent
6ebc20f6d8
commit
a33d1e28e9
Loading…
Reference in New Issue