diff options
author | 2016-12-08 15:19:41 -0800 | |
---|---|---|
committer | 2016-12-08 15:19:41 -0800 | |
commit | 78bc54e7d9345a9af6db88a2264533d43ff57ea0 (patch) | |
tree | 43f7b9ef6b864a5a33c201e2b08fee36a12757bf /include/grpc++/impl/codegen/call.h | |
parent | cadabdf1f3985f5776d7aa3e588acea19c37ddcb (diff) |
Fix stack corruption
Diffstat (limited to 'include/grpc++/impl/codegen/call.h')
-rw-r--r-- | include/grpc++/impl/codegen/call.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/grpc++/impl/codegen/call.h b/include/grpc++/impl/codegen/call.h index 9165f4fd6c..dd6c83a14a 100644 --- a/include/grpc++/impl/codegen/call.h +++ b/include/grpc++/impl/codegen/call.h @@ -438,9 +438,9 @@ class CallOpServerSendStatus { trailing_metadata_count_; op->data.send_status_from_server.trailing_metadata = trailing_metadata_; op->data.send_status_from_server.status = send_status_code_; - grpc_slice status_details = SliceReferencingString(send_status_details_); + status_details_slice_ = SliceReferencingString(send_status_details_); op->data.send_status_from_server.status_details = - send_status_details_.empty() ? nullptr : &status_details; + send_status_details_.empty() ? nullptr : &status_details_slice_; op->flags = 0; op->reserved = NULL; } @@ -457,6 +457,7 @@ class CallOpServerSendStatus { grpc::string send_status_details_; size_t trailing_metadata_count_; grpc_metadata* trailing_metadata_; + grpc_slice status_details_slice_; }; class CallOpRecvInitialMetadata { |