Fix typo.
Change non-short-circuit '&' to short-circuit '&&'. Closes #1
This commit is contained in:
parent
f46e9c6d99
commit
a4d8f7f6a4
|
@ -86,7 +86,7 @@ public class RatchetingSession {
|
||||||
secrets.write(Curve.calculateAgreement(parameters.getTheirSignedPreKey(),
|
secrets.write(Curve.calculateAgreement(parameters.getTheirSignedPreKey(),
|
||||||
parameters.getOurBaseKey().getPrivateKey()));
|
parameters.getOurBaseKey().getPrivateKey()));
|
||||||
|
|
||||||
if (sessionVersion >= 3 & parameters.getTheirOneTimePreKey().isPresent()) {
|
if (sessionVersion >= 3 && parameters.getTheirOneTimePreKey().isPresent()) {
|
||||||
secrets.write(Curve.calculateAgreement(parameters.getTheirOneTimePreKey().get(),
|
secrets.write(Curve.calculateAgreement(parameters.getTheirOneTimePreKey().get(),
|
||||||
parameters.getOurBaseKey().getPrivateKey()));
|
parameters.getOurBaseKey().getPrivateKey()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue