Stop raising ERR_R_MALLOC_FAILURE in most places
[openssl.git] / crypto / asn1 / asn_moid.c
index 526219c1a723c98e66c48430000d80b3b76289a6..6f816307afd4d69f937a9fd07477bd4bf9cf9dfc 100644 (file)
@@ -83,10 +83,8 @@ static int do_create(const char *value, const char *name)
             p--;
         }
         p++;
-        if ((lntmp = OPENSSL_malloc((p - ln) + 1)) == NULL) {
-            ERR_raise(ERR_LIB_ASN1, ERR_R_MALLOC_FAILURE);
+        if ((lntmp = OPENSSL_malloc((p - ln) + 1)) == NULL)
             return 0;
-        }
         memcpy(lntmp, ln, p - ln);
         lntmp[p - ln] = '\0';
         ln = lntmp;