diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2012-11-01 17:23:06 +0100 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2012-11-01 17:23:06 +0100 |
commit | e5d2a53b783d9a0b5240b21d21883b66f036009b (patch) | |
tree | fa77d300b92a13c2e2cb00a9c6bc09d904be00e1 /libmysql/libmysql.c | |
parent | 09180c635fe2c33d281f5ee70a20415428b9ac9e (diff) | |
download | mariadb-git-e5d2a53b783d9a0b5240b21d21883b66f036009b.tar.gz |
Bug#14840488 VALGRIND ERRORS IN MYSQL_CLIENT_TEST
Add missing DBUG_RETURNs, otherwise the debug-stack gets messed up,
and _db_enter_ and _db_exit_ will access data outside the current stack frame.
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r-- | libmysql/libmysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 5d153317150..f7eb19520b7 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -4653,7 +4653,7 @@ int STDCALL mysql_stmt_fetch_column(MYSQL_STMT *stmt, MYSQL_BIND *my_bind, if ((int) stmt->state < (int) MYSQL_STMT_FETCH_DONE) { set_stmt_error(stmt, CR_NO_DATA, unknown_sqlstate, NULL); - return 1; + DBUG_RETURN(1); } if (column >= stmt->field_count) { |