wtap_read() and wtap_seek_read() handle caplen > len; don't do it here.
Change-Id: Iac083abdbaaa4666124e5b296e6f8306ee90f32d Reviewed-on: https://code.wireshark.org/review/1363 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
4f8c8c215d
commit
662e4bd556
|
@ -550,12 +550,6 @@ visual_read_packet(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* Sanity check */
|
||||
if (phdr->len < phdr->caplen)
|
||||
{
|
||||
phdr->len = phdr->caplen;
|
||||
}
|
||||
|
||||
/* Read the packet data */
|
||||
if (!wtap_read_packet_bytes(fh, buf, packet_size, err, err_info))
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue