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
This commit is contained in:
Evan Huus 2012-09-01 16:20:43 +00:00
parent fc4d43ec42
commit 46a2eeecaf
1 changed files with 3 additions and 1 deletions

View File

@ -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.");
}
}