aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/pppdump.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-12-31 23:34:43 +0000
committerGuy Harris <guy@alum.mit.edu>2013-12-31 23:34:43 +0000
commit9df5acefab8e0fa0d70908c5650bb321ac4afe69 (patch)
tree820f9ea06d9a28f19478b8b743fb8f5747ac47ff /wiretap/pppdump.c
parenta628e77311b3836392de52331198cb87352c2ebe (diff)
Trust the packet length we calculate when reading packets randomly.
svn path=/trunk/; revision=54521
Diffstat (limited to 'wiretap/pppdump.c')
-rw-r--r--wiretap/pppdump.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/wiretap/pppdump.c b/wiretap/pppdump.c
index 1338d7eb8f..b3738757f1 100644
--- a/wiretap/pppdump.c
+++ b/wiretap/pppdump.c
@@ -723,7 +723,7 @@ pppdump_seek_read(wtap *wth,
gint64 seek_off,
struct wtap_pkthdr *phdr,
Buffer *buf,
- int len,
+ int len _U_,
int *err,
gchar **err_info)
{
@@ -771,13 +771,6 @@ pppdump_seek_read(wtap *wth,
num_bytes_to_skip = 0;
} while (direction != pid->dir);
- if (len != num_bytes) {
- *err = WTAP_ERR_BAD_FILE; /* XXX - better error? */
- *err_info = g_strdup_printf("pppdump: requested length %d doesn't match record length %d",
- len, num_bytes);
- return FALSE;
- }
-
pppdump_set_phdr(phdr, num_bytes, pid->dir);
return TRUE;