Fix more error codes.
[oweals/openssl.git] / crypto / rsa / rsa_oaep.c
index e3f7c608ec8cf47af734ea56c722ed9d56214013..66d33e538a6125dac1a29440800d05dbc98b5579 100644 (file)
@@ -122,7 +122,7 @@ int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen,
        db = OPENSSL_malloc(dblen);
        if (db == NULL)
                {
-               RSAerr(RSA_F_RSA_PADDING_ADD_PKCS1_OAEP, ERR_R_MALLOC_FAILURE);
+               RSAerr(RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP, ERR_R_MALLOC_FAILURE);
                return -1;
                }