diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-11-26 04:45:49 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-11-26 04:45:49 +0000 |
commit | 5cfa29797171b1f9c979ed126d81faf8906769bf (patch) | |
tree | a25069b990677b862a16bc46d2a8d58c1ed7fb88 /epan/dissectors/packet-ip.c | |
parent | 6dc3290d68e611f8176c511b54824db5b401c305 (diff) |
Don't pass 'len' to the dissect routine since we know there's only 1 byte present. This fixes the buildbot complaint about using 'len' uninitialized.
svn path=/trunk/; revision=40008
Diffstat (limited to 'epan/dissectors/packet-ip.c')
-rw-r--r-- | epan/dissectors/packet-ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c index 8464ede0cc..41a5f3a5b8 100644 --- a/epan/dissectors/packet-ip.c +++ b/epan/dissectors/packet-ip.c @@ -1472,7 +1472,7 @@ dissect_ip_tcp_options(tvbuff_t *tvb, int offset, guint length, if (dissect != NULL) { proto_item_append_text(proto_tree_get_parent(opt_tree), ", %s", optp->name); - (*dissect)(optp, tvb, offset, len, pinfo, opt_tree); + (*dissect)(optp, tvb, offset, 1, pinfo, opt_tree); } else { /* Option has no data, hence no dissector. */ proto_item_append_text(proto_tree_get_parent(opt_tree), ", %s", name); |