From b9a5e073731d819091da4a783191a6a220db3a67 Mon Sep 17 00:00:00 2001 From: Craig Tiller <ctiller@google.com> Date: Fri, 9 Dec 2016 09:53:49 -0800 Subject: [PATCH] Continue updating C# --- src/csharp/ext/grpc_csharp_ext.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/csharp/ext/grpc_csharp_ext.c b/src/csharp/ext/grpc_csharp_ext.c index ee1fe0b494..618522a3b5 100644 --- a/src/csharp/ext/grpc_csharp_ext.c +++ b/src/csharp/ext/grpc_csharp_ext.c @@ -402,8 +402,10 @@ grpcsharp_channel_create_call(grpc_channel *channel, grpc_call *parent_call, grpc_completion_queue *cq, const char *method, const char *host, gpr_timespec deadline) { - return grpc_channel_create_call(channel, parent_call, propagation_mask, cq, - method, host, deadline, NULL); + grpc_slice method_slice = grpc_slice_from_copied_string(method); + grpc_slice host_slice = host == NULL ? grpc_empty_string() : grpc_slice_from_copied_string(host); + grpc_call *grpc_channel_create_call(channel, parent_call, propagation_mask, cq, + method_slice, host_slice, deadline, NULL); } GPR_EXPORT grpc_connectivity_state GPR_CALLTYPE -- GitLab