summaryrefslogtreecommitdiff
path: root/wiretap/pppdump.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2007-05-23 06:03:48 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2007-05-23 06:03:48 +0000
commit3272e98c3992bfb8a33180fd1a3bbc16f37acdc8 (patch)
tree22710ac972b420c1e49fcc68d0521206b985fc44 /wiretap/pppdump.c
parent52346caa9c8e6090ea01cd23e9edfd829c99a9d4 (diff)
downloadwireshark-3272e98c3992bfb8a33180fd1a3bbc16f37acdc8.tar.gz
Fix for bug 1601: handle zero length packets.
svn path=/trunk/; revision=21904
Diffstat (limited to 'wiretap/pppdump.c')
-rw-r--r--wiretap/pppdump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wiretap/pppdump.c b/wiretap/pppdump.c
index 3e19a59529..41efe04a1b 100644
--- a/wiretap/pppdump.c
+++ b/wiretap/pppdump.c
@@ -615,6 +615,9 @@ collate(pppdump_t* state, FILE_T fh, int *err, gchar **err_info, guint8 *pd,
pkt->sd_offset = state->offset;
}
+ if (n == 0)
+ continue;
+
g_assert(num_bytes_to_skip < n);
while (num_bytes_to_skip) {
if (file_getc(fh) == EOF)