diff --git a/src/build.xml b/src/build.xml index 95938ff1f..516f39f60 100644 --- a/src/build.xml +++ b/src/build.xml @@ -1,25 +1,25 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - + + + diff --git a/src/net/sf/briar/transport/TransportConnectionRecogniser.java b/src/net/sf/briar/transport/TransportConnectionRecogniser.java index ae54729a8..079f9e09e 100644 --- a/src/net/sf/briar/transport/TransportConnectionRecogniser.java +++ b/src/net/sf/briar/transport/TransportConnectionRecogniser.java @@ -55,7 +55,7 @@ class TransportConnectionRecogniser { for(long connection1 : window.setSeen(connection)) { byte[] tag1 = new byte[TAG_LENGTH]; crypto.encodeTag(tag1, cipher, key, connection1); - if(connection1 <= connection) { + if(connection1 < connection) { TagContext old = tagMap.remove(new Bytes(tag1)); assert old != null; ByteUtils.erase(old.context.getSecret()); @@ -95,6 +95,7 @@ class TransportConnectionRecogniser { TagContext old = tagMap.put(new Bytes(tag), tctx); assert old == null; } + key.erase(); // Create a removal context to remove the window later RemovalContext rctx = new RemovalContext(window, secret, alice); removalMap.put(new RemovalKey(contactId, period), rctx);