aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanuroe <manu@matrix.org>2019-04-10 23:16:22 +0200
committermanuroe <manu@matrix.org>2019-04-10 23:27:27 +0200
commit89357b6a495ce7b6625db206d416ed428b613804 (patch)
tree1c97ae19a592e0acc506553d9f45887985154158
parent809793c9bad785653657e21d4a7eb6282e3c17ee (diff)
OLMKit: OlmPkEncryption: Fix typos in sanity checks
(cherry picked from commit add1bd6e4250012dcfa30a40d763dba82f53c254)
-rw-r--r--xcode/OLMKit/OLMPkEncryption.m4
1 files changed, 2 insertions, 2 deletions
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;
}