The future is the other direction.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2014-11-24 11:37:28 -08:00
parent c54a5b613b
commit 30aff82341

View file

@ -324,7 +324,7 @@ public class SessionCipher {
}
}
if (chainKey.getIndex() - counter > 2000) {
if (counter - chainKey.getIndex() > 2000) {
throw new InvalidMessageException("Over 2000 messages into the future!");
}