summaryrefslogtreecommitdiff
path: root/proto_hier_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto_hier_stats.c')
-rw-r--r--proto_hier_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto_hier_stats.c b/proto_hier_stats.c
index 68eaaa1eac..ae0ee50350 100644
--- a/proto_hier_stats.c
+++ b/proto_hier_stats.c
@@ -147,7 +147,7 @@ process_frame(frame_data *frame, column_info *cinfo, ph_stats_t* ps)
/* Load the frame from the capture file */
buffer_init(&buf, 1500);
- if (!cf_read_frame_r(&cfile, frame, &phdr, &buf))
+ if (cf_read_frame_r(&cfile, frame, &phdr, &buf) == -1)
return FALSE; /* failure */
/* Dissect the frame tree not visible */