The maximum offset in an IP option dissector is the length of the option.
It's *not* the sum of the length of the option and the length of the option header. Change-Id: I0b5ab0e35ca33dc02a0bc2501e0f0f531ec3f376 Reviewed-on: https://code.wireshark.org/review/28701 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
4f7c8503b0
commit
1834cda2ee
|
@ -931,7 +931,7 @@ dissect_ipopt_cipso(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *
|
|||
guint tagtype, taglen;
|
||||
gint offset = 2,
|
||||
optlen = tvb_reported_length(tvb);
|
||||
int offset_max = offset + optlen;
|
||||
int offset_max = optlen;
|
||||
|
||||
field_tree = ip_var_option_header(tree, pinfo, tvb, proto_ip_option_cipso, ett_ip_option_cipso, &tf, optlen);
|
||||
|
||||
|
|
Loading…
Reference in New Issue