summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)