diff options
author | Martin Mathieson <martin.mathieson@keysight.com> | 2020-08-01 18:41:51 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2020-08-02 05:25:13 +0000 |
commit | bad5b89f000e0a9a6de93650584033ca82e3c5d4 (patch) | |
tree | 2eb479f12b6538111b5e89e48c5d83eae631c85e /epan/dissectors/packet-tds.c | |
parent | 9c2b2798a6b6c795bb390b67634d80eaaa8623f2 (diff) |
TDS: Lengths are uint, so add with _uint() APIs.
Change-Id: Id2b1cbc9e5416c24556c1c2f42d68e4012e29e24
Reviewed-on: https://code.wireshark.org/review/38017
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Craig Jackson <cejackson51@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-tds.c')
-rw-r--r-- | epan/dissectors/packet-tds.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-tds.c b/epan/dissectors/packet-tds.c index fe1e03df9d..79385c4cce 100644 --- a/epan/dissectors/packet-tds.c +++ b/epan/dissectors/packet-tds.c @@ -4631,9 +4631,9 @@ dissect_tds_col_name_token(proto_tree *tree, tvbuff_t *tvb, guint offset, tds_co struct _netlib_data *nl_data) { guint next, cur, col=0; - gint len; + guint32 len; - proto_tree_add_item_ret_int(tree, hf_tds_colname_length, tvb, offset, 2, + proto_tree_add_item_ret_uint(tree, hf_tds_colname_length, tvb, offset, 2, tds_get_int2_encoding(tds_info), &len); cur = offset + 2; next = cur + len; @@ -5099,12 +5099,12 @@ dissect_tds_control_token(proto_tree *tree, tvbuff_t *tvb, guint offset, tds_con struct _netlib_data *nl_data) { guint next, cur, col=0; - gint len; + guint32 len; cur = offset; /* TODO: fill in nl_data as necessary. */ - proto_tree_add_item_ret_int(tree, hf_tds_control_length, tvb, cur, 2, + proto_tree_add_item_ret_uint(tree, hf_tds_control_length, tvb, cur, 2, tds_get_int2_encoding(tds_info), &len); cur += 2; |