mysql: Fix dissection of AuthSwitchResponse

The state that was set by AuthSwitchRequest was overwritten before it
was checked, causing incorrect decoding of AuthSwitchResponse
This commit is contained in:
Daniël van Eeden 2022-08-02 23:15:54 +02:00 committed by A Wireshark GitLab Utility
parent fd03a35c5f
commit c72bf933b6
1 changed files with 1 additions and 1 deletions

View File

@ -2483,8 +2483,8 @@ mysql_dissect_response(tvbuff_t *tvb, packet_info *pinfo, int offset,
} else {
proto_item_append_text(pi, " - %s", val_to_str(RESPONSE_OK, state_vals, "Unknown (%u)"));
offset = mysql_dissect_ok_packet(tvb, pinfo, offset, tree, conn_data);
mysql_set_conn_state(pinfo, conn_data, REQUEST);
}
mysql_set_conn_state(pinfo, conn_data, REQUEST);
} else {
// text row packet
proto_item_append_text(pi, " - %s", val_to_str(ROW_PACKET, state_vals, "Unknown (%u)"));