diff options
Diffstat (limited to 'wiretap/wtap.c')
-rw-r--r-- | wiretap/wtap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c index f193a04ea8..46b2412467 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -1084,8 +1084,8 @@ wtap_seek_read(wtap *wth, gint64 seek_off, * It makes no sense for the captured data length to be bigger * than the actual data length. */ - if (wth->phdr.caplen > wth->phdr.len) - wth->phdr.caplen = wth->phdr.len; + if (phdr->caplen > phdr->len) + phdr->caplen = phdr->len; /* * Make sure that it's not WTAP_ENCAP_PER_PACKET, as that @@ -1093,7 +1093,7 @@ wtap_seek_read(wtap *wth, gint64 seek_off, * but the read routine didn't set this packet's * encapsulation type. */ - g_assert(wth->phdr.pkt_encap != WTAP_ENCAP_PER_PACKET); + g_assert(phdr->pkt_encap != WTAP_ENCAP_PER_PACKET); return TRUE; } |