Commit 8c0ea281 authored by Jan Lindström's avatar Jan Lindström

MDEV-8213: encryption.encryption_force, encryption.encrypt_and_grep fail with...

MDEV-8213: encryption.encryption_force, encryption.encrypt_and_grep fail with valgrind warnings (Invalid read)

Analysis: Problem was that code used old pointer.

Fixed by using correct pointer.
parent 5bd25a9c
......@@ -11763,7 +11763,7 @@ ha_innobase::create(
&mtr);
/* Set up new crypt data */
fil_space_set_crypt_data(innobase_table->space, crypt_data);
crypt_data = fil_space_set_crypt_data(innobase_table->space, crypt_data);
/* Compute location to store crypt data */
byte* frame = buf_block_get_frame(block);
......
......@@ -12276,7 +12276,7 @@ ha_innobase::create(
&mtr);
/* Set up new crypt data */
fil_space_set_crypt_data(innobase_table->space, crypt_data);
crypt_data = fil_space_set_crypt_data(innobase_table->space, crypt_data);
/* Compute location to store crypt data */
byte* frame = buf_block_get_frame(block);
......
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