Fix cut-and-pasteo.

Finishes the fix for bug 9200.

svn path=/trunk/; revision=52247
This commit is contained in:
Guy Harris 2013-09-28 19:26:23 +00:00
parent bdd237863f
commit 1d00d587b4
1 changed files with 1 additions and 1 deletions

View File

@ -1383,7 +1383,7 @@ pcapng_read_simple_packet_block(FILE_T fh, pcapng_block_header_t *bh, pcapng_t *
return 0;
}
wblock->packet_header->caplen = wblock->data.simple_packet.cap_len - pseudo_header_len;
wblock->packet_header->len = wblock->data.packet.packet_len - pseudo_header_len;
wblock->packet_header->len = wblock->data.simple_packet.packet_len - pseudo_header_len;
block_read += pseudo_header_len;
if (pseudo_header_len != pcap_get_phdr_size(int_data.wtap_encap, &wblock->packet_header->pseudo_header)) {
pcapng_debug1("pcapng_read_simple_packet_block: Could only read %d bytes for pseudo header.",