Commit a08121c9 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-14997 mariabackup crashes with invalid --innodb-flush-method

Avoid NULL pointer dereference when shutting down after invalid parameters
were parsed.
parent 5ab46028
......@@ -3569,7 +3569,9 @@ xtrabackup_backup_func()
if(innodb_init_param()) {
fail:
stop_backup_threads();
innodb_shutdown();
if (fil_system) {
innodb_shutdown();
}
return(false);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment