Skip to content

Commit

Permalink
Guarding against null streams when resetting.
Browse files Browse the repository at this point in the history
This is possible when receiving a frame for a non-existent stream:
it is replied with a reset, but the stream object is never created.
  • Loading branch information
sbordet committed Feb 18, 2015
1 parent 84b8882 commit 59ae845
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -991,8 +991,11 @@ public void succeeded()
}
case RST_STREAM:
{
stream.close();
removeStream(stream, true);
if (stream != null)
{
stream.close();
removeStream(stream, true);
}
break;
}
case SETTINGS:
Expand Down

0 comments on commit 59ae845

Please sign in to comment.