diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-09-03 23:40:06 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-09-03 23:40:06 +0000 |
commit | 6d5d22162e308140e949ab2d38c2568bbcc52353 (patch) | |
tree | 9b20d47fc28ca3ac183f9f81d7fbac97e0d84505 | |
parent | d7c622e309d0b2a40c2df87c66765062631377ab (diff) |
If you get a read error while doing a search, go back to the frame where
we started.
svn path=/trunk/; revision=8365
-rw-r--r-- | file.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; } |