aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/iptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/iptrace.c')
-rw-r--r--wiretap/iptrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/iptrace.c b/wiretap/iptrace.c
index 235b317251..bfa278b3f5 100644
--- a/wiretap/iptrace.c
+++ b/wiretap/iptrace.c
@@ -178,7 +178,7 @@ iptrace_read_rec_1_0(FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf,
/*
* Skip the padding.
*/
- if (!file_skip(fh, 3, err))
+ if (!wtap_read_bytes(fh, NULL, 3, err, err_info))
return FALSE;
}
if (packet_size > WTAP_MAX_PACKET_SIZE) {
@@ -371,7 +371,7 @@ iptrace_read_rec_2_0(FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf,
/*
* Skip the padding.
*/
- if (!file_skip(fh, 3, err))
+ if (!wtap_read_bytes(fh, NULL, 3, err, err_info))
return FALSE;
}
if (packet_size > WTAP_MAX_PACKET_SIZE) {