|
|
|
@ -172,7 +172,7 @@ static void send_security_metadata(grpc_exec_ctx *exec_ctx, |
|
|
|
|
calld->creds = grpc_composite_call_credentials_create(channel_call_creds, |
|
|
|
|
ctx->creds, NULL); |
|
|
|
|
if (calld->creds == NULL) { |
|
|
|
|
bubble_up_error(exec_ctx, elem, GRPC_STATUS_INVALID_ARGUMENT, |
|
|
|
|
bubble_up_error(exec_ctx, elem, GRPC_STATUS_INTERNAL, |
|
|
|
|
"Incompatible credentials set on channel and call."); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -201,7 +201,7 @@ static void on_host_checked(grpc_exec_ctx *exec_ctx, void *user_data, |
|
|
|
|
char *error_msg; |
|
|
|
|
gpr_asprintf(&error_msg, "Invalid host %s set in :authority metadata.", |
|
|
|
|
grpc_mdstr_as_c_string(calld->host)); |
|
|
|
|
bubble_up_error(exec_ctx, elem, GRPC_STATUS_INVALID_ARGUMENT, error_msg); |
|
|
|
|
bubble_up_error(exec_ctx, elem, GRPC_STATUS_INTERNAL, error_msg); |
|
|
|
|
gpr_free(error_msg); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|