From 89357b6a495ce7b6625db206d416ed428b613804 Mon Sep 17 00:00:00 2001 From: manuroe Date: Wed, 10 Apr 2019 23:16:22 +0200 Subject: OLMKit: OlmPkEncryption: Fix typos in sanity checks (cherry picked from commit add1bd6e4250012dcfa30a40d763dba82f53c254) --- xcode/OLMKit/OLMPkEncryption.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xcode/OLMKit/OLMPkEncryption.m') diff --git a/xcode/OLMKit/OLMPkEncryption.m b/xcode/OLMKit/OLMPkEncryption.m index c2e3d04..34ad57c 100644 --- a/xcode/OLMKit/OLMPkEncryption.m +++ b/xcode/OLMKit/OLMPkEncryption.m @@ -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; } -- cgit v1.2.3