aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/compare_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/compare_stat.c')
-rw-r--r--ui/gtk/compare_stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/compare_stat.c b/ui/gtk/compare_stat.c
index 2491264fcf..23b68de358 100644
--- a/ui/gtk/compare_stat.c
+++ b/ui/gtk/compare_stat.c
@@ -206,7 +206,7 @@ comparestat_packet(void *arg, packet_info *pinfo, epan_dissect_t *edt _U_, const
cksum_vec[2].ptr=(guint8 *)ci->ip_dst.data;
cksum_vec[2].ptr=cksum_vec[2].ptr+ci->ip_dst.len;
/* dynamic computation */
- cksum_vec[2].len=pinfo->iphdrlen-20;
+ cksum_vec[2].len=ci->ip_len-20;
computed_cksum=in_cksum(&cksum_vec[0], 3);
/* Set up the new order to create the zebra effect */