[chttp2] don't access endpoint in transport ops if it's already been destroyed

pull/36921/head
Mark D. Roth 6 months ago
parent f7ce3ee9d5
commit 4f22314f63
  1. 8
      src/core/ext/transport/chttp2/transport/chttp2_transport.cc

@ -1938,11 +1938,15 @@ static void perform_transport_op_locked(void* stream_op,
}
if (op->bind_pollset) {
grpc_endpoint_add_to_pollset(t->ep, op->bind_pollset);
if (t->ep != nullptr) {
grpc_endpoint_add_to_pollset(t->ep, op->bind_pollset);
}
}
if (op->bind_pollset_set) {
grpc_endpoint_add_to_pollset_set(t->ep, op->bind_pollset_set);
if (t->ep != nullptr) {
grpc_endpoint_add_to_pollset_set(t->ep, op->bind_pollset_set);
}
}
if (op->send_ping.on_initiate != nullptr || op->send_ping.on_ack != nullptr) {

Loading…
Cancel
Save