summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-02-15 17:40:14 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2018-02-15 17:40:14 +0000
commita08121c978f17e834e852802e7516b0aba6344e6 (patch)
treebd831223c52260d50d153674921d21014356b242 /extra
parent5ab46028103ca91451ea2449e238c37168e54ad0 (diff)
downloadmariadb-git-a08121c978f17e834e852802e7516b0aba6344e6.tar.gz
MDEV-14997 mariabackup crashes with invalid --innodb-flush-method
Avoid NULL pointer dereference when shutting down after invalid parameters were parsed.
Diffstat (limited to 'extra')
-rw-r--r--extra/mariabackup/xtrabackup.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc
index 7ac168b1778..18c7474a2e8 100644
--- a/extra/mariabackup/xtrabackup.cc
+++ b/extra/mariabackup/xtrabackup.cc
@@ -3569,7 +3569,9 @@ xtrabackup_backup_func()
if(innodb_init_param()) {
fail:
stop_backup_threads();
- innodb_shutdown();
+ if (fil_system) {
+ innodb_shutdown();
+ }
return(false);
}