aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-09-03 23:40:06 +0000
committerGuy Harris <guy@alum.mit.edu>2003-09-03 23:40:06 +0000
commit6d5d22162e308140e949ab2d38c2568bbcc52353 (patch)
tree9b20d47fc28ca3ac183f9f81d7fbac97e0d84505 /file.c
parentd7c622e309d0b2a40c2df87c66765062631377ab (diff)
If you get a read error while doing a search, go back to the frame where
we started. svn path=/trunk/; revision=8365
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/file.c b/file.c
index 9e6a8219ed..a6917602a4 100644
--- a/file.c
+++ b/file.c
@@ -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;
}