Skip to content

Commit e4ac425

Browse files
committed
PSTATS BUGFIX: Fixed zero-len packets recognition
When there are stripped payload data in the input.
1 parent 11dcd7c commit e4ac425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

process/pstats.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void PSTATSPlugin::update_record(RecordExtPSTATS *pstats_data, const Packet &pkt
133133
pstats_data->tcp_len[dir] = pkt.payload_len;
134134
pstats_data->tcp_flg[dir] = pkt.tcp_flags;
135135

136-
if (pkt.payload_len == 0 && use_zeros == false) {
136+
if (pkt.payload_len_wire == 0 && use_zeros == false) {
137137
return;
138138
}
139139

0 commit comments

Comments
 (0)