Skip to content

Commit

Permalink
MDEV-14997 mariabackup crashes with invalid --innodb-flush-method
Browse files Browse the repository at this point in the history
Avoid NULL pointer dereference when shutting down after invalid parameters
were parsed.
  • Loading branch information
vaintroub committed Feb 15, 2018
1 parent 5ab4602 commit a08121c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extra/mariabackup/xtrabackup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3569,7 +3569,9 @@ xtrabackup_backup_func()
if(innodb_init_param()) {
fail:
stop_backup_threads();
innodb_shutdown();
if (fil_system) {
innodb_shutdown();
}
return(false);
}

Expand Down

0 comments on commit a08121c

Please sign in to comment.