file_seek() sets the error variable; no need to set it ourselves.

Change-Id: I637326841e6db562b0896e77c86c4ebf9c3b0561
Reviewed-on: https://code.wireshark.org/review/1756
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2014-05-23 11:10:05 -07:00
parent 7f6f5fc5f4
commit 8ce793c09b
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ static gboolean stanag4607_read_file(wtap *wth, FILE_T fh, struct wtap_pkthdr *p
/* wind back to the start of the packet ... */
if (file_seek(fh, - offset, SEEK_CUR, err) == -1)
goto fail;
return FALSE;
return wtap_read_packet_bytes(fh, buf, packet_size, err, err_info);