aboutsummaryrefslogtreecommitdiff
path: root/xcode
diff options
context:
space:
mode:
Diffstat (limited to 'xcode')
-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;
}