Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LTP: Report the data length actually consumed
dissect_data_segment dissects both LTP headers and a payload data segment. It returns the number of bytes consumed and the length of the payload data segment. The length of the data segment is subtracted from the number of bytes consumed to determine the length of the header, which means that if the packet is cut short, we need to report the length of data actually present so that we don't call proto_item_set_len with a negative number. Fix #19338
- Loading branch information