diff options
author | manuroe <manu@matrix.org> | 2017-01-17 16:14:22 +0100 |
---|---|---|
committer | manuroe <manu@matrix.org> | 2017-01-17 16:14:22 +0100 |
commit | ded15597c6736d33bac74d34251c8527e5fa360f (patch) | |
tree | 43a69d268351e7d94db579600f69a428fdc09055 /xcode/OLMKit | |
parent | 885b85f5167d2d3ddcbe3de41dc88e8586b01a57 (diff) |
OLMKit: Reset intermediate buffer to zeroes
Diffstat (limited to 'xcode/OLMKit')
-rw-r--r-- | xcode/OLMKit/OLMInboundGroupSession.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xcode/OLMKit/OLMInboundGroupSession.m b/xcode/OLMKit/OLMInboundGroupSession.m index 3ef02e8..08459ca 100644 --- a/xcode/OLMKit/OLMInboundGroupSession.m +++ b/xcode/OLMKit/OLMInboundGroupSession.m @@ -204,6 +204,7 @@ return nil; } NSString *keyString = [[NSString alloc] initWithData:key encoding:NSUTF8StringEncoding]; + [key resetBytesInRange:NSMakeRange(0, key.length)]; return keyString; } |