forked from osmocom/wireshark
If packet was modified fallback to generic clone
svn path=/trunk/; revision=51443
This commit is contained in:
parent
b0adfae289
commit
39122c4ec8
|
@ -211,11 +211,12 @@ frame_tvbuff_new(const frame_data *fd, const guint8 *buf)
|
|||
|
||||
frame_tvb = (struct tvb_frame *) tvb;
|
||||
|
||||
/* XXX, how to handle fd->file_off == -1 (edited packet) ?? */
|
||||
/* don't care, reassemble code was doing whole copy of data, so it'll work the same */
|
||||
|
||||
/* XXX, wtap_can_seek() */
|
||||
if (cfile.wth && cfile.wth->random_fh) {
|
||||
if (cfile.wth && cfile.wth->random_fh
|
||||
#ifdef WANT_PACKET_EDITOR
|
||||
&& fd->file_off != -1 /* generic clone for modified packets */
|
||||
#endif
|
||||
) {
|
||||
frame_tvb->wth = cfile.wth;
|
||||
frame_tvb->file_off = fd->file_off;
|
||||
frame_tvb->offset = 0;
|
||||
|
|
Loading…
Reference in New Issue