diff options
author | 2016-12-16 13:59:04 -0800 | |
---|---|---|
committer | 2016-12-16 13:59:04 -0800 | |
commit | d803b805aef97a03bd5873c1a8c3e534bd22feb7 (patch) | |
tree | d9c0d2098633d6be536097b8fcae33cac8e0410a | |
parent | b229094678502e2606164a3240dbc8375ad403b5 (diff) |
Fix RST_STREAM(0) inconsistency
-rw-r--r-- | src/core/ext/transport/chttp2/transport/frame_rst_stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/transport/chttp2/transport/frame_rst_stream.c b/src/core/ext/transport/chttp2/transport/frame_rst_stream.c index b4c5ed769b..20043f5fbf 100644 --- a/src/core/ext/transport/chttp2/transport/frame_rst_stream.c +++ b/src/core/ext/transport/chttp2/transport/frame_rst_stream.c @@ -109,7 +109,7 @@ grpc_error *grpc_chttp2_rst_stream_parser_parse(grpc_exec_ctx *exec_ctx, (((uint32_t)p->reason_bytes[2]) << 8) | (((uint32_t)p->reason_bytes[3])); grpc_error *error = GRPC_ERROR_NONE; - if (reason != GRPC_CHTTP2_NO_ERROR) { + if (reason != GRPC_CHTTP2_NO_ERROR || s->header_frames_received < 2) { error = grpc_error_set_int(GRPC_ERROR_CREATE("RST_STREAM"), GRPC_ERROR_INT_HTTP2_ERROR, (intptr_t)reason); grpc_status_code status_code = grpc_chttp2_http2_error_to_grpc_status( |