mirror of https://github.com/OISF/suricata
cybersecurityidsintrusion-detection-systemintrusion-prevention-systemipsnetwork-monitornetwork-monitoringnsmsecuritysuricatathreat-hunting
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FlowReference stores the flow in the destination pointer and increases the flow reference counter (use_cnt). This should only be called once per destination pointer. The reference counter is decremented when FlowDereference is called. Multiple FlowReference calls would lead to multiple use_cnt bumps, while there would be only one FlowRereference. This lead to a use_cnt that would never become 0, meaning the flow would stay in the hash for the entire lifetime of the process. The fix here is to check if the destination pointer is already set to the flow. If so, we don't increase the reference counter. As this is really a bug, this condition will lead to a BUG_ON if the DEBUG_VALIDATION checking is enabled. |
12 years ago | |
|---|---|---|
| benches | ||
| contrib | 12 years ago | |
| doc | 13 years ago | |
| m4 | 16 years ago | |
| qa | 12 years ago | |
| rules | 12 years ago | |
| scripts | 13 years ago | |
| src | 12 years ago | |
| .gitignore | 12 years ago | |
| COPYING | ||
| ChangeLog | 12 years ago | |
| LICENSE | 16 years ago | |
| Makefile.am | 12 years ago | |
| Makefile.cvs | ||
| acsite.m4 | ||
| autogen.sh | 13 years ago | |
| classification.config | 16 years ago | |
| config.rpath | 12 years ago | |
| configure.ac | 12 years ago | |
| doxygen.cfg | 12 years ago | |
| reference.config | 14 years ago | |
| suricata.yaml.in | 12 years ago | |
| threshold.config | 13 years ago | |