Skip to content

Commit

Permalink
Merge pull request #64 from ccutrer/communications_drop
Browse files Browse the repository at this point in the history
fix reading encrypted frames that don't line up with network frames
  • Loading branch information
andylintner authored Feb 11, 2019
2 parents dfc2d57 + be99e88 commit e449fcf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private void step(byte[] data, int pos, Collection<byte[]> results) {
results.add(buffer.toByteArray());
buffer.reset();
targetLength = 0;
if (pos + toWrite > data.length) {
if (pos + toWrite < data.length) {
step(data, pos + toWrite, results);
}
} else {
Expand Down

0 comments on commit e449fcf

Please sign in to comment.