]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
ppc: fix ambiguous if if else statement
authorPauli <pauli@openssl.org>
Mon, 31 May 2021 05:16:16 +0000 (15:16 +1000)
committerPauli <pauli@openssl.org>
Tue, 1 Jun 2021 05:04:05 +0000 (15:04 +1000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15535)

crypto/ppccap.c

index 4d28d84cae2f2d19016c95ac77698ff64ea103b9..27f048686eace019a00238a9b98d00f1ece6a60a 100644 (file)
@@ -68,11 +68,12 @@ int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
      * no opportunity to figure it out...
      */
 
-    if (num == 6)
+    if (num == 6) {
         if (OPENSSL_ppccap_P & PPC_MADD300)
             return bn_mul_mont_300_fixed_n6(rp, ap, bp, np, n0, num);
         else
             return bn_mul_mont_fixed_n6(rp, ap, bp, np, n0, num);
+    }
 
     return bn_mul_mont_int(rp, ap, bp, np, n0, num);
 }