diff options
author | 2018-10-18 15:28:15 -0700 | |
---|---|---|
committer | 2018-10-18 15:28:15 -0700 | |
commit | b9e522420741024e05f8ef3ccde7fbeeaaea2234 (patch) | |
tree | 7b8dd5df0f26d235b0eff6136679f108fba976e7 /src/objective-c/GRPCClient/private/GRPCHost.m | |
parent | 1084f49c310b62ff5a06fa5f6c262f813dce75a5 (diff) |
more copy settings
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCHost.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCHost.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCHost.m b/src/objective-c/GRPCClient/private/GRPCHost.m index c1992b84e9..032b274ffc 100644 --- a/src/objective-c/GRPCClient/private/GRPCHost.m +++ b/src/objective-c/GRPCClient/private/GRPCHost.m @@ -92,9 +92,9 @@ static NSMutableDictionary *gHostCache; withPrivateKey:(nullable NSString *)pemPrivateKey withCertChain:(nullable NSString *)pemCertChain error:(NSError **)errorPtr { - _PEMRootCertificates = pemRootCerts; - _PEMPrivateKey = pemPrivateKey; - _pemCertChain = pemCertChain; + _PEMRootCertificates = [pemRootCerts copy]; + _PEMPrivateKey = [pemPrivateKey copy]; + _pemCertChain = [pemCertChain copy]; return YES; } |