From b53af532afaf9458ea279d3a97e249bd59732f0f Mon Sep 17 00:00:00 2001 From: Yang Gao Date: Thu, 2 Apr 2015 09:24:39 -0700 Subject: Bug fix. User can destroy status after calling Finish and we should keep a copy of it instead of a pointer --- include/grpc++/impl/call.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/grpc++/impl/call.h') diff --git a/include/grpc++/impl/call.h b/include/grpc++/impl/call.h index e117ac6313..7ba758040b 100644 --- a/include/grpc++/impl/call.h +++ b/include/grpc++/impl/call.h @@ -109,7 +109,9 @@ class CallOpBuffer : public CompletionQueueTag { char* status_details_; size_t status_details_capacity_; // Server send status - const Status* send_status_; + bool send_status_; + grpc_status_code send_status_code_; + grpc::string send_status_details_; size_t trailing_metadata_count_; grpc_metadata* trailing_metadata_; int cancelled_buf_; -- cgit v1.2.3