From 55646005a9ce3c85e394c6afae5f6ed6045494c6 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Fri, 30 Oct 2015 11:22:31 +0000 Subject: Continue malloc standardisation in engines Continuing from previous work standardise use of malloc in the engine code. Reviewed-by: Kurt Roeckx --- engines/e_ossltest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/e_ossltest.c') diff --git a/engines/e_ossltest.c b/engines/e_ossltest.c index e9a071ce65..b3b9bc0395 100644 --- a/engines/e_ossltest.c +++ b/engines/e_ossltest.c @@ -257,7 +257,7 @@ IMPLEMENT_DYNAMIC_CHECK_FN() static ENGINE *engine_ossltest(void) { ENGINE *ret = ENGINE_new(); - if (!ret) + if (ret == NULL) return NULL; if (!bind_ossltest(ret)) { ENGINE_free(ret); @@ -505,7 +505,7 @@ int ossltest_aes128_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, * run time */ ctx->cipher_data = OPENSSL_zalloc(EVP_aes_128_cbc()->ctx_size); - if (!ctx->cipher_data) { + if (ctx->cipher_data == NULL) { OSSLTESTerr(OSSLTEST_F_OSSLTEST_AES128_INIT_KEY, ERR_R_MALLOC_FAILURE); return 0; -- cgit v1.2.3