INSTALL,NOTES.WIN: classify no-asm as non-production option.
[openssl.git] / crypto / bio / bf_nbio.c
index d7972bfed785ef810ceabce0ac9364ce29410ad8..4bc84eeba659c418d10cc1442883d34315f1fd54 100644 (file)
@@ -57,8 +57,10 @@ static int nbiof_new(BIO *bi)
 {
     NBIO_TEST *nt;
 
-    if ((nt = OPENSSL_zalloc(sizeof(*nt))) == NULL)
+    if ((nt = OPENSSL_zalloc(sizeof(*nt))) == NULL) {
+        BIOerr(BIO_F_NBIOF_NEW, ERR_R_MALLOC_FAILURE);
         return 0;
+    }
     nt->lrn = -1;
     nt->lwn = -1;
     bi->ptr = (char *)nt;