If you get a read error while doing a search, go back to the frame where

we started.

svn path=/trunk/; revision=8365
This commit is contained in:
Guy Harris 2003-09-03 23:40:06 +00:00
parent d7c622e309
commit 6d5d22162e
1 changed files with 4 additions and 1 deletions

5
file.c
View File

@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
* $Id: file.c,v 1.306 2003/09/03 23:15:40 guy Exp $
* $Id: file.c,v 1.307 2003/09/03 23:40:06 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -1889,8 +1889,11 @@ find_packet(capture_file *cf,
/* Yes. Load its data. */
if (!wtap_seek_read(cf->wth, fdata->file_off, &cf->pseudo_header,
cf->pd, fdata->cap_len, &err)) {
/* Read error. Report the error, and go back to the frame
where we started. */
simple_dialog(ESD_TYPE_CRIT, NULL,
file_read_error_message(err), cf->filename);
new_fd = start_fd;
break;
}