summaryrefslogtreecommitdiff
path: root/libmysql/libmysql.ver.in
diff options
context:
space:
mode:
authorVenkata Sidagam <venkata.sidagam@oracle.com>2013-01-10 16:37:20 +0530
committerVenkata Sidagam <venkata.sidagam@oracle.com>2013-01-10 16:37:20 +0530
commita40ea266e6c658dd9154ad29d7841ed4f2534901 (patch)
treeed103eadfe08b1fccf50bb165f1c7beb134407b8 /libmysql/libmysql.ver.in
parentd6aed37a2f941ae57147ce0ba59d83581f8d5147 (diff)
downloadmariadb-git-a40ea266e6c658dd9154ad29d7841ed4f2534901.tar.gz
Bug #14553380 MYSQL C API LIBRARY EXITS AT NET_CLEAR AT NET_SERV.CC:223
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().
Diffstat (limited to 'libmysql/libmysql.ver.in')
0 files changed, 0 insertions, 0 deletions