]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/rsa/rsa_pk1.c
Stop raising ERR_R_MALLOC_FAILURE in most places
[thirdparty/openssl.git] / crypto / rsa / rsa_pk1.c
index 51507fc030a7b21d3791d95e44060930cb76ee35..5f72fe1735df00396f888352927d44a5bf70af57 100644 (file)
@@ -188,10 +188,8 @@ int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,
     }
 
     em = OPENSSL_malloc(num);
-    if (em == NULL) {
-        ERR_raise(ERR_LIB_RSA, ERR_R_MALLOC_FAILURE);
+    if (em == NULL)
         return -1;
-    }
     /*
      * Caller is encouraged to pass zero-padded message created with
      * BN_bn2binpad. Trouble is that since we can't read out of |from|'s