mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
MDEV-10970: Crash while loading mysqldump backup when InnoDB encryption is enabled
Follow-up: Make sure we do not reference NULL-pointer when space is being dropped and does not contain any nodes.
This commit is contained in:
@@ -1001,8 +1001,13 @@ retry:
|
||||
does not exist, we handle the situation in the function which called
|
||||
this function */
|
||||
|
||||
if (!space || UT_LIST_GET_FIRST(space->chain)->open) {
|
||||
if (!space) {
|
||||
return;
|
||||
}
|
||||
|
||||
fil_node_t* node = UT_LIST_GET_FIRST(space->chain);
|
||||
|
||||
if (!node || node->open) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -1002,8 +1002,13 @@ retry:
|
||||
/* If the file is already open, no need to do anything; if the space
|
||||
does not exist, we handle the situation in the function which called
|
||||
this function */
|
||||
if (!space) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!space || UT_LIST_GET_FIRST(space->chain)->open) {
|
||||
fil_node_t* node = UT_LIST_GET_FIRST(space->chain);
|
||||
|
||||
if (!node || node->open) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user