Stop raising ERR_R_MALLOC_FAILURE in most places
[openssl.git] / crypto / bio / bss_mem.c
index a753380e64269a10fb290aa7564a96390b78e797..014acf29637c537dde4353e812ced489db6019f4 100644 (file)
@@ -326,10 +326,8 @@ static int mem_write(BIO *b, const char *in, int inl)
     if (bbm->use_dgrams) {
         struct buf_mem_dgram_st *dgram = OPENSSL_malloc(sizeof(*dgram));
 
-        if (dgram == NULL) {
-            ERR_raise(ERR_LIB_BIO, ERR_R_MALLOC_FAILURE);
+        if (dgram == NULL)
             goto end;
-        }
 
         dgram->dgram = bbm->buf->data + blen;
         dgram->dgramlen = inl;