mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Tests and bugfixes for XorErasureDecoder.
This commit is contained in:
@@ -23,7 +23,7 @@ class XorErasureDecoder implements ErasureDecoder {
|
||||
// All the pieces must have the same length - take the minimum
|
||||
int length = MAX_FRAME_LENGTH;
|
||||
for(int i = 0; i < n; i++) {
|
||||
if(set[i] == null) {
|
||||
if(set[i] != null) {
|
||||
int len = set[i].getLength();
|
||||
if(len < length) length = len;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user