|
|
@ -121,11 +121,10 @@ void grpc_auth_metadata_context_copy(grpc_auth_metadata_context* from, |
|
|
|
->Ref(DEBUG_LOCATION, "grpc_auth_metadata_context_copy") |
|
|
|
->Ref(DEBUG_LOCATION, "grpc_auth_metadata_context_copy") |
|
|
|
.release(); |
|
|
|
.release(); |
|
|
|
} |
|
|
|
} |
|
|
|
to->service_url = |
|
|
|
to->service_url = gpr_strdup(from->service_url); |
|
|
|
(from->service_url == nullptr) ? nullptr : strdup(from->service_url); |
|
|
|
to->method_name = gpr_strdup(from->method_name); |
|
|
|
to->method_name = |
|
|
|
|
|
|
|
(from->method_name == nullptr) ? nullptr : strdup(from->method_name); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void grpc_auth_metadata_context_reset( |
|
|
|
void grpc_auth_metadata_context_reset( |
|
|
|
grpc_auth_metadata_context* auth_md_context) { |
|
|
|
grpc_auth_metadata_context* auth_md_context) { |
|
|
|
if (auth_md_context->service_url != nullptr) { |
|
|
|
if (auth_md_context->service_url != nullptr) { |
|
|
|