diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index 3eacfe16..b734c9f8 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -1661,6 +1661,15 @@ class Crypt_RSA } if ($components === false) { + $this->comment = null; + $this->modulus = null; + $this->k = null; + $this->exponent = null; + $this->primes = null; + $this->exponents = null; + $this->coefficients = null; + $this->publicExponent = null; + return false; }