summaryrefslogtreecommitdiff
path: root/wiretap/stanag4607.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-05-23 11:10:05 -0700
committerGuy Harris <guy@alum.mit.edu>2014-05-23 18:10:39 +0000
commit8ce793c09bcacddcb2816b4bf0a704039b0ffd36 (patch)
tree7d6871a59bb7de3ed835ab79c81d0f3889616382 /wiretap/stanag4607.c
parent7f6f5fc5f47de756fae202cc81dabafbd8d73998 (diff)
downloadwireshark-8ce793c09bcacddcb2816b4bf0a704039b0ffd36.tar.gz
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>
Diffstat (limited to 'wiretap/stanag4607.c')
-rw-r--r--wiretap/stanag4607.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/stanag4607.c b/wiretap/stanag4607.c
index 12bc05885c..d4a5ed5317 100644
--- a/wiretap/stanag4607.c
+++ b/wiretap/stanag4607.c
@@ -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);