Fix crash when accepting a stream after shutdown

reviewable/pr8008/r10
Craig Tiller 9 years ago
parent c2fbddf199
commit 7f0bf534df
  1. 3
      src/core/ext/transport/chttp2/transport/chttp2_transport.c

@ -524,6 +524,9 @@ grpc_chttp2_stream *grpc_chttp2_parsing_lookup_stream(grpc_chttp2_transport *t,
grpc_chttp2_stream *grpc_chttp2_parsing_accept_stream(grpc_exec_ctx *exec_ctx,
grpc_chttp2_transport *t,
uint32_t id) {
if (t->channel_callback.accept_stream == NULL) {
return NULL;
}
grpc_chttp2_stream *accepting;
GPR_ASSERT(t->accepting_stream == NULL);
t->accepting_stream = &accepting;

Loading…
Cancel
Save