Skip to content

Commit

Permalink
[chttp2] don't access endpoint in transport ops if it's already been …
Browse files Browse the repository at this point in the history
…destroyed
  • Loading branch information
markdroth committed Jun 13, 2024
1 parent f7ce3ee commit 4f22314
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/core/ext/transport/chttp2/transport/chttp2_transport.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4f22314

Please sign in to comment.