1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fix for bug#4236 "Server crash on attempt to execute non-prepared

statement": check that statement is not null when accessing it's name.
This commit is contained in:
konstantin@mysql.com
2004-06-22 11:04:41 +04:00
parent b929db876d
commit 3f53a1cb44
2 changed files with 31 additions and 1 deletions

View File

@@ -561,7 +561,7 @@ public:
{
Statement *stmt;
stmt= (Statement *) hash_search(&st_hash, (byte *) &id, sizeof(id));
if (stmt->name.str)
if (stmt && stmt->name.str)
return NULL;
last_found_statement= stmt;
}