summaryrefslogtreecommitdiff
path: root/storage/maria
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-05-17 18:44:23 +0200
committerSergei Golubchik <serg@mariadb.org>2020-07-29 14:56:24 +0200
commit77b7f793f9e7504b39194f530edc0e314569ea1c (patch)
tree1c4a14aa68e5bac54e6ae822a568737fb414cf36 /storage/maria
parent88cbe2f08193054ccf6565c2b27a8d809285a45b (diff)
downloadmariadb-git-77b7f793f9e7504b39194f530edc0e314569ea1c.tar.gz
MDEV-18496 Crash when Aria encryption is enabled but plugin not available
fix uninitialized struct member
Diffstat (limited to 'storage/maria')
-rw-r--r--storage/maria/ma_check.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/maria/ma_check.c b/storage/maria/ma_check.c
index 789a4d0d5b6..8231cd47913 100644
--- a/storage/maria/ma_check.c
+++ b/storage/maria/ma_check.c
@@ -3198,6 +3198,7 @@ static int write_page(MARIA_SHARE *share, File file,
args.page= buff;
args.pageno= (pgcache_page_no_t) (pos / share->block_size);
args.data= (uchar*) share;
+ args.crypt_buf= NULL;
(* share->kfile.pre_write_hook)(&args);
res= my_pwrite(file, args.page, block_size, pos, myf_rw);
(* share->kfile.post_write_hook)(res, &args);