summaryrefslogtreecommitdiff
path: root/wiretap/peekclassic.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/peekclassic.c')
-rw-r--r--wiretap/peekclassic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wiretap/peekclassic.c b/wiretap/peekclassic.c
index 5cbefbb394..91569e2abb 100644
--- a/wiretap/peekclassic.c
+++ b/wiretap/peekclassic.c
@@ -365,14 +365,15 @@ static gboolean peekclassic_read_v7(wtap *wth, int *err, gchar **err_info,
/* Skip extra ignored data at the end of the packet. */
if ((guint32)sliceLength > wth->phdr.caplen) {
- if (!file_skip(wth->fh, sliceLength - wth->phdr.caplen, err))
+ if (!wtap_read_bytes(wth->fh, NULL, sliceLength - wth->phdr.caplen,
+ err, err_info))
return FALSE;
}
/* Records are padded to an even length, so if the slice length
is odd, read the padding byte. */
if (sliceLength & 0x01) {
- if (!file_skip(wth->fh, 1, err))
+ if (!wtap_read_bytes(wth->fh, NULL, 1, err, err_info))
return FALSE;
}