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

Avoid NULL pointer dereference when shutting down after invalid parameters
were parsed.
This commit is contained in:
Vladislav Vaintroub 2018-02-15 17:40:14 +00:00
parent 5ab4602810
commit a08121c978

View file

@ -3569,7 +3569,9 @@ xtrabackup_backup_func()
if(innodb_init_param()) {
fail:
stop_backup_threads();
if (fil_system) {
innodb_shutdown();
}
return(false);
}