summaryrefslogtreecommitdiff
path: root/wiretap
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-03-31 18:28:52 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-03-31 18:28:52 +0000
commit9e49109b285e027fea3c5483ffb1c7456967fad6 (patch)
treed09730fcbf3ab7c8e99574e3fa035ef5ff3c3ae4 /wiretap
parent735b61500cc37a7bbd185b29f1ac59b451e11d19 (diff)
downloadwireshark-9e49109b285e027fea3c5483ffb1c7456967fad6.tar.gz
Check return value of file_seek(). Fixes CID 338.
svn path=/trunk/; revision=36425
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/mpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/mpeg.c b/wiretap/mpeg.c
index 2cdbeea4bc..8ac25590c3 100644
--- a/wiretap/mpeg.c
+++ b/wiretap/mpeg.c
@@ -69,7 +69,8 @@ mpeg_resync(wtap *wth, int *err, gchar **err_info _U_)
byte = file_getc(wth->fh);
count++;
}
- file_seek(wth->fh, offset, SEEK_SET, err);
+ if (file_seek(wth->fh, offset, SEEK_SET, err) == -1)
+ return 0;
return count;
}