bug 1255: Fix syntax error (bracketing)
authorMichael Tänzer <neo@nhng.de>
Sun, 9 Mar 2014 02:09:26 +0000 (03:09 +0100)
committerMichael Tänzer <neo@nhng.de>
Sun, 9 Mar 2014 02:09:26 +0000 (03:09 +0100)
Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/lib/check_weak_key.php

index 7f96a88..6628bed 100644 (file)
@@ -261,7 +261,7 @@ function checkWeakKeyText($text)
                }
 
                //Check the numbers are all less than the public modulus P
-               if(0 <= gmp_cmp($num_Q, $num_P)) || 0 <= gmp_cmp($num_G, $num_P)) || 0 <= gmp_cmp($num_Y, $num_P))) {
+               if(0 <= gmp_cmp($num_Q, $num_P) || 0 <= gmp_cmp($num_G, $num_P) || 0 <= gmp_cmp($num_Y, $num_P)) {
                        return failWithId("checkWeakKeyText(): The supplied DSA ".
                                        "key does seem to be normalized to have Q < P, G < P and Y < P.\nData:\n$text");
                }