1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fix for CONC-351:

If an ok packet doesn't contain session state tracking information, we need to
clear session state information from previous ok packet.
This commit is contained in:
Georg Richter
2018-08-06 18:45:30 +02:00
parent 6d15291899
commit 072fa008b8
2 changed files with 27 additions and 0 deletions

View File

@@ -2100,6 +2100,9 @@ int ma_read_ok_packet(MYSQL *mysql, uchar *pos, ulong length)
}
}
}
/* CONC-351: clear session state information */
else if (mysql->server_capabilities & CLIENT_SESSION_TRACKING)
ma_clear_session_state(mysql);
return(0);
}