RSA: only set $this->current when it's already set

This commit is contained in:
terrafrost 2013-10-24 15:48:15 -05:00
parent 5888c6cef6
commit 15677715e3

View File

@ -1357,12 +1357,10 @@ class Crypt_RSA {
*/ */
function _stop_element_handler($parser, $name) function _stop_element_handler($parser, $name)
{ {
//$name = strtoupper($name); if (isset($this->current)) {
if ($name == 'RSAKEYVALUE') { $this->current = new Math_BigInteger(base64_decode($this->current), 256);
return; unset($this->current);
} }
$this->current = new Math_BigInteger(base64_decode($this->current), 256);
unset($this->current);
} }
/** /**