Skip to content
Snippets Groups Projects
Verified Commit f1250b3f authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix shadow warning about bytes of fallback key

parent 2122209f
No related branches found
No related tags found
No related merge requests found
Pipeline #3152 passed
......@@ -124,8 +124,8 @@ OlmClient::generate_one_time_keys(std::size_t number_of_keys, bool generate_fall
throw olm_exception("generate_one_time_keys", account_.get());
if (generate_fallback) {
const std::size_t nbytes = olm_account_generate_fallback_key_random_length(account_.get());
buf = create_buffer(nbytes);
const std::size_t fnbytes = olm_account_generate_fallback_key_random_length(account_.get());
buf = create_buffer(fnbytes);
auto temp = olm_account_generate_fallback_key(account_.get(), buf.data(), buf.size());
if (temp == olm_error())
throw olm_exception("generate_fallback_keys", account_.get());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment