Skip to content
Snippets Groups Projects
Commit 1685d773 authored by Yang Gao's avatar Yang Gao
Browse files

Merge pull request #1406 from ctiller/crash-boom-bang

Incoming stream id validation fixes
parents 50f7b87b 8a5bce35
No related branches found
No related tags found
No related merge requests found
......@@ -1392,7 +1392,10 @@ static int init_header_frame_parser(transport *t, int is_continuation) {
gpr_log(GPR_ERROR,
"ignoring out of order new stream request on server; last stream "
"id=%d, new stream id=%d",
t->last_incoming_stream_id, t->incoming_stream);
t->last_incoming_stream_id, t->incoming_stream_id);
return init_skip_frame(t, 1);
} else if ((t->incoming_stream_id & 1) == 0) {
gpr_log(GPR_ERROR, "ignoring stream with non-client generated index %d", t->incoming_stream_id);
return init_skip_frame(t, 1);
}
t->incoming_stream = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment