From 7acfe182121f3e129da8888f77c2b770ff9ec6a4 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 19 Sep 2012 15:38:04 +1000 Subject: [PATCH] fix error return codes --- ssh/rsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh/rsa.c b/ssh/rsa.c index cb2cade..cc2d9ab 100644 --- a/ssh/rsa.c +++ b/ssh/rsa.c @@ -79,13 +79,13 @@ rsa_public_encrypt(BIGNUM *out, BIGNUM *in, RSA *key) olen = BN_num_bytes(key->n); if ((outbuf = malloc(olen)) == NULL) { - r = SSH_ERR_LIBCRYPTO_ERROR; + r = SSH_ERR_ALLOC_FAIL; goto out; } ilen = BN_num_bytes(in); if ((inbuf = malloc(ilen)) == NULL) { - r = SSH_ERR_LIBCRYPTO_ERROR; + r = SSH_ERR_ALLOC_FAIL; goto out; } BN_bn2bin(in, inbuf);