Do not add packet length twice to cum_bytes when having a TIME REF frame.
This fixes bug 2387. svn path=/trunk/; revision=24730
This commit is contained in:
parent
4d1463f62d
commit
aecd4254c6
10
file.c
10
file.c
|
@ -982,15 +982,15 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf,
|
|||
/* This frame either passed the display filter list or is marked as
|
||||
a time reference frame. All time reference frames are displayed
|
||||
even if they dont pass the display filter */
|
||||
/* if this was a TIME REF frame we should reset the cul bytes field */
|
||||
if(edt->pi.fd->flags.ref_time){
|
||||
/* if this was a TIME REF frame we should reset the cul bytes field */
|
||||
cum_bytes = fdata->pkt_len;
|
||||
fdata->cum_bytes = cum_bytes;
|
||||
fdata->cum_bytes = cum_bytes;
|
||||
} else {
|
||||
/* increase cum_bytes with this packets length */
|
||||
cum_bytes += fdata->pkt_len;
|
||||
}
|
||||
|
||||
/* increase cum_bytes with this packets length */
|
||||
cum_bytes += fdata->pkt_len;
|
||||
|
||||
epan_dissect_fill_in_columns(edt);
|
||||
|
||||
/* If we haven't yet seen the first frame, this is it.
|
||||
|
|
Loading…
Reference in New Issue