mirror of https://github.com/OISF/suricata
detect: guard rate filter callback registration, return bool on failure
SCDetectEngineRegisterRateFilterCallback() dereferences the result of DetectEngineGetCurrent() unconditionally. Add a NULL guard with SCLogError and return false so callers can detect registration failure. Flagged by Svace and confirmed by gcc -fanalyzer. Ticket: 8560pull/15601/head
parent
4d4c6227e1
commit
17151571b8
Loading…
Reference in New Issue