diff options
author | Vijay Pai <vpai@google.com> | 2018-12-17 09:37:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-17 09:37:18 -0800 |
commit | 21940df57e3d5d34cc72d5f6785e9c2718165263 (patch) | |
tree | 1f1d773e53a9fa6aaa40b8361b4ea195a9549949 | |
parent | b250f34b1225cde1bb19496c5cc5d66e40111052 (diff) | |
parent | f2324e1c056249dd7862799443809e4964c4866a (diff) |
Merge pull request #17521 from vjpai/reset_send_message
Reset the SendMessage pointer before post-interception hooks
-rw-r--r-- | include/grpcpp/impl/codegen/call_op_set.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/grpcpp/impl/codegen/call_op_set.h b/include/grpcpp/impl/codegen/call_op_set.h index b4c34a01c9..b2100c68b7 100644 --- a/include/grpcpp/impl/codegen/call_op_set.h +++ b/include/grpcpp/impl/codegen/call_op_set.h @@ -325,7 +325,11 @@ class CallOpSendMessage { } void SetFinishInterceptionHookPoint( - InterceptorBatchMethodsImpl* interceptor_methods) {} + InterceptorBatchMethodsImpl* interceptor_methods) { + // The contents of the SendMessage value that was previously set + // has had its references stolen by core's operations + interceptor_methods->SetSendMessage(nullptr); + } void SetHijackingState(InterceptorBatchMethodsImpl* interceptor_methods) { hijacked_ = true; |