diff options
author | Kentoku SHIBA <kentokushiba@gmail.com> | 2014-03-25 05:36:22 +0900 |
---|---|---|
committer | Kentoku SHIBA <kentokushiba@gmail.com> | 2014-03-25 05:36:22 +0900 |
commit | 487a064783e2b4c1d1a8205411335b672f4edf58 (patch) | |
tree | 9d028854691d6979a2423355b5bc946493ce2566 /storage/spider | |
parent | 4d980a4701540f06c3d49405ddca2e8d2c65e1d4 (diff) | |
download | mariadb-git-487a064783e2b4c1d1a8205411335b672f4edf58.tar.gz |
fix invalid memory access
Diffstat (limited to 'storage/spider')
-rw-r--r-- | storage/spider/spd_db_handlersocket.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/storage/spider/spd_db_handlersocket.cc b/storage/spider/spd_db_handlersocket.cc index f78ec15b1a9..7ab8feda9b9 100644 --- a/storage/spider/spd_db_handlersocket.cc +++ b/storage/spider/spd_db_handlersocket.cc @@ -3540,7 +3540,10 @@ int spider_handlersocket_share::init() if ( (error_num = create_table_names_str()) || - (error_num = create_column_name_str()) + ( + spider_share->table_share && + (error_num = create_column_name_str()) + ) ) { DBUG_RETURN(HA_ERR_OUT_OF_MEM); } |