Actions
Optimization #6111
closeddefrag: avoid passing null pointers to functions
Effort:
Difficulty:
Label:
Description
DecodeThreadVars, ThreadVars, and possibly some other variables are sometimes passed as null parameters
in our unit test functions.
This leads to the necessity of checking if they're not null pointers in several other places, such as
seen in https://github.com/OISF/suricata/blob/master/src/defrag.c#L1033, before using those variables, to prevent
warnings code analyzers.
This may be the case for other files, too.
Expected result: clean up calls of functions with null pointers, so we can clean up those checks for NULL pointers.
Updated by Victor Julien 5 months ago
- Status changed from New to Closed
- Assignee changed from OISF Dev to Victor Julien
Actions