Fix typo.

Change non-short-circuit '&' to short-circuit '&&'.

Closes #1
This commit is contained in:
Tarek Galal 2014-12-22 09:02:11 +01:00 committed by Moxie Marlinspike
parent f46e9c6d99
commit a4d8f7f6a4
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ public class RatchetingSession {
secrets.write(Curve.calculateAgreement(parameters.getTheirSignedPreKey(),
parameters.getOurBaseKey().getPrivateKey()));
if (sessionVersion >= 3 & parameters.getTheirOneTimePreKey().isPresent()) {
if (sessionVersion >= 3 && parameters.getTheirOneTimePreKey().isPresent()) {
secrets.write(Curve.calculateAgreement(parameters.getTheirOneTimePreKey().get(),
parameters.getOurBaseKey().getPrivateKey()));
}