summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index ad3363c39b..44ff87b142 100644
--- a/file.c
+++ b/file.c
@@ -3463,8 +3463,8 @@ cf_goto_frame(capture_file *cf, guint fnumber)
{
frame_data *fdata;
- if (cf == NULL) {
- /* we don't have a loaded capture file - fix for bug 11810*/
+ if (cf == NULL || cf->frames == NULL) {
+ /* we don't have a loaded capture file - fix for bugs 11810 & 11989 */
statusbar_push_temporary_msg("There is no file loaded");
return FALSE; /* we failed to go to that packet */
}