aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/libpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2009-06-02 19:06:05 +0000
committerGuy Harris <guy@alum.mit.edu>2009-06-02 19:06:05 +0000
commit7d5afce08f1e59a1c3bf448e968d4b2ae2224208 (patch)
tree333cd5680a6cd05dc7f23e570cafdebae6a31518 /wiretap/libpcap.c
parent75af067043f15f47ccd731af8e0517e4c0bc44a7 (diff)
When doing a seek-and-read, don't check the packet size, as we don't
have it (we have the size with the pseudo-header length already removed); we've already read the packet, and thus have already checked it. Fixes bug 3501. svn path=/trunk/; revision=28607
Diffstat (limited to 'wiretap/libpcap.c')
-rw-r--r--wiretap/libpcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c
index 9668fd104f..beee98f4fd 100644
--- a/wiretap/libpcap.c
+++ b/wiretap/libpcap.c
@@ -637,7 +637,7 @@ static gboolean libpcap_read(wtap *wth, int *err, gchar **err_info,
*data_offset = wth->data_offset;
phdr_len = pcap_process_pseudo_header(wth, wth->fh, packet_size,
- &wth->phdr, &wth->pseudo_header, err, err_info);
+ TRUE, &wth->phdr, &wth->pseudo_header, err, err_info);
if (phdr_len < 0)
return FALSE; /* error */
@@ -705,7 +705,7 @@ libpcap_seek_read(wtap *wth, gint64 seek_off,
return FALSE;
phdr_len = pcap_process_pseudo_header(wth, wth->random_fh, length,
- NULL, pseudo_header, err, err_info);
+ FALSE, NULL, pseudo_header, err, err_info);
if (phdr_len < 0)
return FALSE; /* error */