Skip to content
Snippets Groups Projects
Commit 67527818 authored by akwizgran's avatar akwizgran
Browse files

Removed redundant padding check.

parent 726799d8
No related branches found
No related tags found
No related merge requests found
...@@ -119,10 +119,6 @@ implements ConnectionReader { ...@@ -119,10 +119,6 @@ implements ConnectionReader {
int read = in.read(payload, offset, int read = in.read(payload, offset,
payloadLen + paddingLen - offset); payloadLen + paddingLen - offset);
if(read == -1) throw new EOFException(); // Unexpected EOF 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); mac.update(payload, offset, read);
offset += read; offset += read;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment