diff options
author | Craig Tiller <ctiller@google.com> | 2017-01-10 06:36:46 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-01-10 06:36:46 -0800 |
commit | 8f24d6a8d21dd05dd3fd4d90acabfaab38e65cbc (patch) | |
tree | 52617cdc9a253410844dd62aa56bb58c5d0c0b6d /src | |
parent | 7ea1370a2106a08772f2209f1f3e776890825df1 (diff) |
Fix async_end2end_test
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lib/surface/call.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/lib/surface/call.c b/src/core/lib/surface/call.c index eef315bead..9c9ac46bed 100644 --- a/src/core/lib/surface/call.c +++ b/src/core/lib/surface/call.c @@ -607,7 +607,8 @@ static void get_final_status_from(grpc_call *call, status_source from_source, set_value(code, set_value_user_data); if (details != NULL) { - *details = grpc_slice_from_copied_string(msg); + *details = + msg == NULL ? grpc_empty_slice() : grpc_slice_from_copied_string(msg); } } @@ -868,6 +869,8 @@ static void recv_common_filter(grpc_exec_ctx *exec_ctx, grpc_call *call, error = grpc_error_set_str(error, GRPC_ERROR_STR_GRPC_MESSAGE, msg); gpr_free(msg); grpc_metadata_batch_remove(exec_ctx, b, b->idx.named.grpc_message); + } else { + error = grpc_error_set_str(error, GRPC_ERROR_STR_GRPC_MESSAGE, ""); } set_status_from_error(exec_ctx, call, STATUS_FROM_WIRE, error); |