forked from osmocom/wireshark
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:
parent
7f6f5fc5f4
commit
8ce793c09b
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue