forked from osmocom/wireshark
ascend: set rec->rec_type.
REC_TYPE_PACKET is 0, so if it's been initialized to 0, and never gets
overwritten, this fixes code withotu fixing a visible bug, but it should
be done anyway.
(backported from commit 162251176a
)
This commit is contained in:
parent
e8938c10a2
commit
73fe213954
|
@ -353,6 +353,7 @@ parse_ascend(ascend_t *ascend, FILE_T fh, wtap_rec *rec, Buffer *buf,
|
|||
if (ascend->inittime > parser_state.secs)
|
||||
ascend->inittime -= parser_state.secs;
|
||||
}
|
||||
rec->rec_type = REC_TYPE_PACKET;
|
||||
rec->presence_flags = WTAP_HAS_TS|WTAP_HAS_CAP_LEN;
|
||||
rec->ts.secs = parser_state.secs + ascend->inittime;
|
||||
rec->ts.nsecs = parser_state.usecs * 1000;
|
||||
|
|
Loading…
Reference in New Issue