Merge pull request #17521 from vjpai/reset_send_message

Reset the SendMessage pointer before post-interception hooks
pull/17525/head
Vijay Pai 6 years ago committed by GitHub
commit 21940df57e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      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;

Loading…
Cancel
Save