Prevent a use-after-free

reviewable/pr6737/r3
Craig Tiller 9 years ago
parent 8db469baf6
commit 571f3e55b4
  1. 2
      src/core/ext/transport/chttp2/transport/chttp2_transport.c

@ -1178,6 +1178,7 @@ static void perform_stream_op_locked(grpc_exec_ctx *exec_ctx,
true);
}
} else {
stream_global->send_initial_metadata = NULL;
grpc_chttp2_complete_closure_step(
exec_ctx, transport_global, stream_global,
&stream_global->send_initial_metadata_finished,
@ -1233,6 +1234,7 @@ static void perform_stream_op_locked(grpc_exec_ctx *exec_ctx,
grpc_chttp2_list_add_check_read_ops(transport_global, stream_global);
}
if (stream_global->write_closed) {
stream_global->send_trailing_metadata = NULL;
grpc_chttp2_complete_closure_step(
exec_ctx, transport_global, stream_global,
&stream_global->send_trailing_metadata_finished,

Loading…
Cancel
Save