Skip to content
Snippets Groups Projects
Commit 8a5bce35 authored by Craig Tiller's avatar Craig Tiller
Browse files

Incoming stream id validation fixes

- correct log message on an invalid stream id
- add an additional check that the low bit indicates a client stream id on the server
parent 5b8c2558
No related branches found
No related tags found
No related merge requests found
......@@ -1327,7 +1327,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