Add some missing bounds checks. (#260)

This commit is contained in:
Geoffry Song
2018-04-23 14:38:42 -07:00
committed by Carl Lerche
parent 040f391479
commit 11f914150e
4 changed files with 33 additions and 4 deletions

View File

@@ -315,7 +315,7 @@ where
// but should allow continuing to process current streams
// until they are all EOS. Once they are, State should
// transition to GoAway.
self.streams.recv_go_away(&frame);
self.streams.recv_go_away(&frame)?;
self.error = Some(frame.reason());
},
Some(Ping(frame)) => {