diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-11-16 01:56:58 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-11-16 01:56:58 +0000 |
commit | 2d683b486b62b35323ec9dee963f3ca057a79e0c (patch) | |
tree | 3bf35191a6b699a99e9db34d0e579cabdedb02fe /epan/dissectors | |
parent | 20a766c23a116b33be6d8bcd58f70bd5d772c267 (diff) |
Thou shalt not use proto_tree_add_string() with an FT_BYTES field.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39873 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-mysql.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mysql.c b/epan/dissectors/packet-mysql.c index 1a5ce74ea3..3abcce54d4 100644 --- a/epan/dissectors/packet-mysql.c +++ b/epan/dissectors/packet-mysql.c @@ -1447,6 +1447,7 @@ mysql_dissect_response(tvbuff_t *tvb, packet_info *pinfo, int offset, gint response_code; gint strlen; gint server_status = 0; + proto_item *ti; response_code = tvb_get_guint8(tvb, offset); @@ -1530,8 +1531,8 @@ mysql_dissect_response(tvbuff_t *tvb, packet_info *pinfo, int offset, break; default: - proto_tree_add_string(tree, hf_mysql_payload, tvb, offset, -1, - "unknown/invalid response"); + ti = proto_tree_add_item(tree, hf_mysql_payload, tvb, offset, -1, ENC_NA); + expert_add_info_format(pinfo, ti, PI_UNDECODED, PI_WARN, "unknown/invalid response"); offset += tvb_reported_length_remaining(tvb, offset); conn_data->state = UNDEFINED; } |