OLMKit: Reset intermediate buffer to zeroes

release-v2.2.0
manuroe 2017-01-17 16:14:22 +01:00
parent 885b85f516
commit ded15597c6
1 changed files with 1 additions and 0 deletions

View File

@ -204,6 +204,7 @@
return nil;
}
NSString *keyString = [[NSString alloc] initWithData:key encoding:NSUTF8StringEncoding];
[key resetBytesInRange:NSMakeRange(0, key.length)];
return keyString;
}