mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
pki: Fix pki_publickey_to_string() rsa checks.
This commit is contained in:
@@ -426,12 +426,12 @@ ssh_string pki_publickey_to_string(const ssh_key key)
|
|||||||
case SSH_KEYTYPE_RSA:
|
case SSH_KEYTYPE_RSA:
|
||||||
case SSH_KEYTYPE_RSA1:
|
case SSH_KEYTYPE_RSA1:
|
||||||
e = make_bignum_string(key->rsa->e);
|
e = make_bignum_string(key->rsa->e);
|
||||||
if (p == NULL) {
|
if (e == NULL) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
n = make_bignum_string(key->rsa->n);
|
n = make_bignum_string(key->rsa->n);
|
||||||
if (q == NULL) {
|
if (n == NULL) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user