summaryrefslogtreecommitdiffstats
path: root/crypto/hmac/hm_pmeth.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/hmac/hm_pmeth.c')
-rw-r--r--crypto/hmac/hm_pmeth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/hmac/hm_pmeth.c b/crypto/hmac/hm_pmeth.c
index ff9dbe35b0..e06a1db0ea 100644
--- a/crypto/hmac/hm_pmeth.c
+++ b/crypto/hmac/hm_pmeth.c
@@ -77,7 +77,7 @@ static int pkey_hmac_init(EVP_PKEY_CTX *ctx)
HMAC_PKEY_CTX *hctx;
hctx = OPENSSL_zalloc(sizeof(*hctx));
- if (!hctx)
+ if (hctx == NULL)
return 0;
hctx->ktmp.type = V_ASN1_OCTET_STRING;
HMAC_CTX_init(&hctx->ctx);