aboutsummaryrefslogtreecommitdiff
path: root/xcode/OLMKit/OLMInboundGroupSession.m
diff options
context:
space:
mode:
authormanuroe <manu@matrix.org>2016-12-20 11:46:57 +0100
committermanuroe <manu@matrix.org>2016-12-20 11:46:57 +0100
commit46ad79517ec8e005bd2d1de767d3cd59ec038fe2 (patch)
tree29a0886330c6a4ba32ef0e6cf361d218bbcc4878 /xcode/OLMKit/OLMInboundGroupSession.m
parent3540926b98813e5e5daed709f820f06f6f9ac2ae (diff)
OLMKit: More zeroing
Diffstat (limited to 'xcode/OLMKit/OLMInboundGroupSession.m')
-rw-r--r--xcode/OLMKit/OLMInboundGroupSession.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/xcode/OLMKit/OLMInboundGroupSession.m b/xcode/OLMKit/OLMInboundGroupSession.m
index 4f7bdd7..6ef51c3 100644
--- a/xcode/OLMKit/OLMInboundGroupSession.m
+++ b/xcode/OLMKit/OLMInboundGroupSession.m
@@ -143,6 +143,7 @@
}
plaintextData.length = plaintextLength;
NSString *plaintext = [[NSString alloc] initWithData:plaintextData encoding:NSUTF8StringEncoding];
+ [plaintextData resetBytesInRange:NSMakeRange(0, plaintextData.length)];
if (messageIndex)
{