From 056a1aeef52cdfedc0356e05af18c1d5f3f8b867 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 13 May 2020 23:08:19 +0200 Subject: [PATCH] Avoid & and && mix without brackets --- src/libsodium/crypto_sign/ed25519/ref10/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/crypto_sign/ed25519/ref10/open.c b/src/libsodium/crypto_sign/ed25519/ref10/open.c index e5764b36..5e1280bd 100644 --- a/src/libsodium/crypto_sign/ed25519/ref10/open.c +++ b/src/libsodium/crypto_sign/ed25519/ref10/open.c @@ -28,7 +28,7 @@ _crypto_sign_ed25519_verify_detached(const unsigned char *sig, return -1; } #else - if (sig[63] & 240 && + if ((sig[63] & 240) && sc25519_is_canonical(sig + 32) == 0) { return -1; }