OLMKit: OlmPkEncryption: Fix typos in sanity checks
(cherry picked from commit add1bd6e4250012dcfa30a40d763dba82f53c254)
This commit is contained in:
parent
809793c9ba
commit
89357b6a49
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue