Fix more error codes.
[openssl.git] / crypto / rsa / rsa_eay.c
index 738ea0be71c3f932f1cc5811dfac32b6fb52e805..21755c0e2fc5959461321b1414eb4ef143026a5d 100644 (file)
@@ -400,7 +400,7 @@ static int RSA_eay_private_decrypt(int flen, const unsigned char *from,
                blinding = rsa_get_blinding(rsa, &br, &local_blinding, ctx);
                if (blinding == NULL)
                        {
-                       RSAerr(RSA_F_RSA_EAY_PRIVATE_ENCRYPT, ERR_R_INTERNAL_ERROR);
+                       RSAerr(RSA_F_RSA_EAY_PRIVATE_DECRYPT, ERR_R_INTERNAL_ERROR);
                        goto err;
                        }
                }