- while (memcmp(t_magic, active_time_magic, 11) != 0)
- {
- if (file_seek(wth->fh, -10, SEEK_CUR, err) == -1)
- return -1;
- wth->data_offset += 1;
- errno = WTAP_ERR_CANT_READ;
- bytes_read = file_read(t_magic, 1, 11, wth->fh);
- if (bytes_read != 11) {
- *err = file_error(wth->fh);
- if (*err != 0)
- return -1;
- return 0;
- }
- }
- if (file_seek(wth->fh, -43, SEEK_CUR, err) == -1) return -1;
+ while (memcmp(t_magic, active_time_magic, 11) != 0)
+ {
+ if (file_seek(wth->fh, -10, SEEK_CUR, err) == -1)
+ return -1;
+ wth->data_offset += 1;
+ errno = WTAP_ERR_CANT_READ;
+ bytes_read = file_read(t_magic, 11, wth->fh);
+ if (bytes_read != 11) {
+ *err = file_error(wth->fh, err_info);
+ if (*err != 0)
+ return -1;
+ return 0;
+ }
+ }
+ if (file_seek(wth->fh, -43, SEEK_CUR, err) == -1) return -1;