summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pki_crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index 32e6c6a..5345e94 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;
}