#918: PHP needs a variable, can't pass NULL by reference
authorMichael Tänzer <neo@nhng.de>
Tue, 5 Apr 2011 21:29:41 +0000 (23:29 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 5 Apr 2011 21:29:41 +0000 (23:29 +0200)
#918: "Weak keys in certificates"

Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/account_stuff.php

index e9d26cc..fd480b3 100644 (file)
@@ -332,7 +332,7 @@ function hideall() {
                /* Check for the debian OpenSSL vulnerability */
                
                $csr = escapeshellarg($csr);
-               exec("echo $csr | openssl-vulnkey -q -", NULL, $debianVuln);
+               exec("echo $csr | openssl-vulnkey -q -", $dummy, $debianVuln);
                if ($debianVuln === -1)
                {
                        return sprintf(_("The keys you use have very likely been ".
@@ -406,7 +406,7 @@ function hideall() {
                                        
                                        $keysize = escapeshellarg($keysize);
                                        $modulus = escapeshellarg($modulus);
-                                       exec("openssl-vulnkey -q -b $keysize -m $modulus", NULL,
+                                       exec("openssl-vulnkey -q -b $keysize -m $modulus", $dummy,
                                                $debianVuln);
                                        if ($debianVuln === -1)
                                        {