Skip to content

Commit

Permalink
Merge pull request netty#934 from jpinner/fix_spdy_regression_master
Browse files Browse the repository at this point in the history
SPDY: fix regression in SpdyFrameDecoder.decodeHeaderBlock()
  • Loading branch information
Jeff Pinner committed Jan 14, 2013
2 parents 1354b4a + f75b6b1 commit c20d875
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ private void decodeHeaderBlock(ByteBuf buffer) throws Exception {
}
}

while (numHeaders -- > 0) {
while (numHeaders > 0) {
int headerSize = this.headerSize;
decompressed.markReaderIndex();

Expand Down Expand Up @@ -638,6 +638,7 @@ private void decodeHeaderBlock(ByteBuf buffer) throws Exception {
return;
} else {
spdyHeaderBlock.addHeader(name, "");
numHeaders --;
this.headerSize = headerSize;
continue;
}
Expand Down Expand Up @@ -683,6 +684,7 @@ private void decodeHeaderBlock(ByteBuf buffer) throws Exception {
index ++;
offset = index;
}
numHeaders --;
this.headerSize = headerSize;
}
decompressed = null;
Expand Down

0 comments on commit c20d875

Please sign in to comment.