|
|
|
@ -333,10 +333,8 @@ end: |
|
|
|
|
grpc_alts_credentials_options_destroy(options); |
|
|
|
|
auto creds = |
|
|
|
|
grpc_core::MakeRefCounted<grpc_google_default_channel_credentials>( |
|
|
|
|
alts_creds != nullptr ? alts_creds->Ref() : nullptr, |
|
|
|
|
ssl_creds != nullptr ? ssl_creds->Ref() : nullptr); |
|
|
|
|
if (ssl_creds) ssl_creds->Unref(); |
|
|
|
|
if (alts_creds) alts_creds->Unref(); |
|
|
|
|
grpc_core::RefCountedPtr<grpc_channel_credentials>(alts_creds), |
|
|
|
|
grpc_core::RefCountedPtr<grpc_channel_credentials>(ssl_creds)); |
|
|
|
|
result = grpc_composite_channel_credentials_create( |
|
|
|
|
creds.get(), call_creds.get(), nullptr); |
|
|
|
|
GPR_ASSERT(result != nullptr); |
|
|
|
|