mirror of https://github.com/OISF/suricata
detect-bytetest: remove meaningless NULL check on data_offset
The condition data_offset == NULL can never be true: data_offset has already been validated as non-NULL a few lines earlier. The guard seems to have been intended for the offset argument, yet throughout the codebase offset is never passed as NULL. (In the unit tests, offset is NULL, but those tests pass the value parameter as NULL, which causes the function to return before offset is dereferenced.) Remove the pointless check to simplify control flow and silence static-analysis warnings. No functional change. Bug 7767pull/13565/head
parent
1940454a69
commit
66e7437bef
Loading…
Reference in New Issue