1
0
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:
Andreas Schneider
2011-08-15 23:53:46 +02:00
parent 3c3673d1b8
commit 977d6fc089

View File

@@ -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;
} }