If packet was modified fallback to generic clone

svn path=/trunk/; revision=51443
This commit is contained in:
Jakub Zawadzki 2013-08-20 19:53:24 +00:00
parent b0adfae289
commit 39122c4ec8
1 changed files with 5 additions and 4 deletions

View File

@ -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;