set their_key_set flag explicitly on init

sas-base64-fix
Hubert Chathi 2020-09-23 16:11:37 -04:00
parent 2ef1f6f4fc
commit 78d9cbabb7
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ size_t olm_create_sas(
return (size_t)-1;
}
_olm_crypto_curve25519_generate_key((uint8_t *) random, &sas->curve25519_key);
sas->their_key_set = 0;
return 0;
}