OLMKit: OlmPkEncryption: Fix typos in sanity checks

(cherry picked from commit add1bd6e4250012dcfa30a40d763dba82f53c254)
This commit is contained in:
manuroe 2019-04-10 23:16:22 +02:00
parent 809793c9ba
commit 89357b6a49

View file

@ -65,13 +65,13 @@
size_t macLength = olm_pk_mac_length(session);
NSMutableData *macData = [NSMutableData dataWithLength:macLength];
if (!ciphertext) {
if (!macData) {
return nil;
}
size_t ephemeralKeyLength = olm_pk_key_length();
NSMutableData *ephemeralKeyData = [NSMutableData dataWithLength:ephemeralKeyLength];
if (!ciphertext) {
if (!ephemeralKeyData) {
return nil;
}