mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
3fa76fd05d
Problem description: When client loses the connection to the MySQL server or if the server gets shutdown after mysql_stmt_prepare() then the next mysql_stmt_prepare() will return an error(as expected) but consecutive call mysql_stmt_execute(), will crash the client program. The expected behavior would be, it should through an error. Analysis: The mysql_stmt_prepare() interns calls the function end_server() and net->vio and net->buff are freed and set to NULL. Then the next call mysql_stmt_execute() will interns call net_clear() where we are "net->vio" with out validating it. Fix: we are validating the net->vio, before calling net_clear(). |
||
---|---|---|
.. | ||
authentication_win | ||
client_settings.h | ||
CMakeLists.txt | ||
conf_to_src.c | ||
errmsg.c | ||
get_password.c | ||
libmysql.c | ||
libmysql.def | ||
libmysql.ver.in |