Reset the SendMessage pointer before post-interception

pull/17521/head
Vijay Pai 6 years ago
parent b250f34b12
commit f2324e1c05
  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