aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-04-18 18:22:20 -0700
committerGuy Harris <guy@alum.mit.edu>2016-04-19 01:23:20 +0000
commitb13d9b64749ed45dfafee5ccc121e8c5dee4e062 (patch)
treee8d190bbb569b44a5cdb41ef80d89d5ab6a42b17 /wiretap
parentb6784594f5ed263462cc6d55fce403b53da61117 (diff)
Open routines are called with the seek pointer at the beginning.
There's no need for an open routine to seek back to the beginning of the file - the file open code has done that already. Change-Id: I4053474e60e7c8e8f59a89503d4bb08499d9399e Reviewed-on: https://code.wireshark.org/review/14996 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/mplog.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/wiretap/mplog.c b/wiretap/mplog.c
index c3041ff720..8db584188e 100644
--- a/wiretap/mplog.c
+++ b/wiretap/mplog.c
@@ -226,10 +226,6 @@ wtap_open_return_val mplog_open(wtap *wth, int *err, gchar **err_info _U_)
gboolean ok;
guint8 str[6];
- /* rewind the fh so we re-read from the beginning */
- if (-1 == file_seek(wth->fh, 0, SEEK_SET, err))
- return WTAP_OPEN_ERROR;
-
ok = wtap_read_bytes_or_eof(wth->fh, str, 6, err, err_info);
if (!ok)
return WTAP_OPEN_NOT_MINE;