diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-15 23:53:46 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-16 00:47:43 +0200 |
commit | 977d6fc089d3fb33d5d22f3a47438e5a48706d66 (patch) | |
tree | f4cdc5f3ca6ed09d54a75586f7458dafccaaffe9 | |
parent | 3c3673d1b81eb055ef57baf463155cff24cc760a (diff) | |
download | libssh-977d6fc089d3fb33d5d22f3a47438e5a48706d66.tar.gz libssh-977d6fc089d3fb33d5d22f3a47438e5a48706d66.tar.xz libssh-977d6fc089d3fb33d5d22f3a47438e5a48706d66.zip |
pki: Fix pki_publickey_to_string() rsa checks.
-rw-r--r-- | src/pki_crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c index 32e6c6a3..5345e946 100644 --- a/src/pki_crypto.c +++ b/src/pki_crypto.c @@ -426,12 +426,12 @@ ssh_string pki_publickey_to_string(const ssh_key key) case SSH_KEYTYPE_RSA: case SSH_KEYTYPE_RSA1: e = make_bignum_string(key->rsa->e); - if (p == NULL) { + if (e == NULL) { goto fail; } n = make_bignum_string(key->rsa->n); - if (q == NULL) { + if (n == NULL) { goto fail; } |