diff options
author | Evan Huus <eapache@gmail.com> | 2012-09-01 16:20:43 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2012-09-01 16:20:43 +0000 |
commit | 46a2eeecaf2539a340bef7c790c95282befcfebe (patch) | |
tree | 3f46cc09512d3659bc92b3df8e1a64599d129de3 /epan/dissectors/packet-mysql.c | |
parent | fc4d43ec4263bf216d6be4fde16faa658e38ad0e (diff) |
Add expert warning when we get a mysql EOF marker and the
connection is in a state where we're not expecting one.
svn path=/trunk/; revision=44731
Diffstat (limited to 'epan/dissectors/packet-mysql.c')
-rw-r--r-- | epan/dissectors/packet-mysql.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mysql.c b/epan/dissectors/packet-mysql.c index d5203eec2a..32f8f38412 100644 --- a/epan/dissectors/packet-mysql.c +++ b/epan/dissectors/packet-mysql.c @@ -1458,7 +1458,7 @@ mysql_dissect_response(tvbuff_t *tvb, packet_info *pinfo, int offset, else if (response_code == 0xfe && tvb_reported_length_remaining(tvb, offset) < 9) { - proto_tree_add_item(tree, hf_mysql_eof, tvb, offset, 1, ENC_NA); + ti = proto_tree_add_item(tree, hf_mysql_eof, tvb, offset, 1, ENC_NA); offset += 1; @@ -1488,6 +1488,8 @@ mysql_dissect_response(tvbuff_t *tvb, packet_info *pinfo, int offset, } else { /* This should be an unreachable case */ conn_data->state= REQUEST; + expert_add_info_format(pinfo, ti, PI_PROTOCOL, PI_WARN, + "EOF Marker found while connection in wrong state."); } } |