diff options
author | Vijay Pai <vpai@google.com> | 2018-12-16 16:01:14 -0800 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2018-12-16 16:01:14 -0800 |
commit | f2324e1c056249dd7862799443809e4964c4866a (patch) | |
tree | 1f1d773e53a9fa6aaa40b8361b4ea195a9549949 /include | |
parent | b250f34b1225cde1bb19496c5cc5d66e40111052 (diff) |
Reset the SendMessage pointer before post-interception
Diffstat (limited to 'include')
-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; |