X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Fd2i_test.c;h=78adf489dd38ba7398a31576c6b0c2ea859e8f7c;hp=49882a3828599ed4e6506f860d656e9c5a03d937;hb=53e409db615550c4bf5da2c9a5f56c7065315636;hpb=c62981390d6cf9e3d612c489b8b77c2913b25807 diff --git a/test/d2i_test.c b/test/d2i_test.c index 49882a3828..78adf489dd 100644 --- a/test/d2i_test.c +++ b/test/d2i_test.c @@ -108,6 +108,9 @@ static int execute_test(D2I_TEST_FIXTURE fixture) ret = 1; err: + /* Don't indicate success for memory allocation errors */ + if (ret == 1 && ERR_GET_REASON(ERR_peek_error()) == ERR_R_MALLOC_FAILURE) + ret = 0; BIO_free(bio); OPENSSL_free(der); ASN1_item_free(value, item_type);