Skip to content

Commit 7465001

Browse files
committed
Precedence fix
1 parent 6cc6d73 commit 7465001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/i2p/crypto/eddsa/EdDSAEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ public boolean verifyOneShot(byte[] data, int off, int len, byte[] signature, in
413413
@Override
414414
protected void engineSetParameter(AlgorithmParameterSpec spec) throws InvalidAlgorithmParameterException {
415415
if (spec.equals(ONE_SHOT_MODE)) {
416-
if (oneShotBytes != null || baos != null && baos.size() > 0)
416+
if (oneShotBytes != null || (baos != null && baos.size() > 0))
417417
throw new InvalidAlgorithmParameterException("update() already called");
418418
oneShotMode = true;
419419
} else {

0 commit comments

Comments
 (0)