Commit 89357b6a authored by manuroe's avatar manuroe

OLMKit: OlmPkEncryption: Fix typos in sanity checks

(cherry picked from commit add1bd6e4250012dcfa30a40d763dba82f53c254)
parent 809793c9
......@@ -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;
}
......
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