diff options
author | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-23 06:03:48 +0000 |
---|---|---|
committer | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-23 06:03:48 +0000 |
commit | ee7cf325ead93e6c2174186000503335edaa9138 (patch) | |
tree | 22710ac972b420c1e49fcc68d0521206b985fc44 /wiretap | |
parent | 422bffdb13b1d1c76822c05d64ae95a2d8122801 (diff) |
Fix for bug 1601: handle zero length packets.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21904 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/pppdump.c | 3 |
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) |