Removed redundant padding check.

This commit is contained in:
akwizgran
2011-12-02 16:24:00 +00:00
parent 726799d848
commit 6752781835

View File

@@ -119,10 +119,6 @@ implements ConnectionReader {
int read = in.read(payload, offset,
payloadLen + paddingLen - offset);
if(read == -1) throw new EOFException(); // Unexpected EOF
// The padding must be set to zero
for(int i = offset; i < offset + read; i++) {
if(payload[i] != 0) throw new FormatException();
}
mac.update(payload, offset, read);
offset += read;
}