Standardise our style for checking malloc failures
[openssl.git] / ssl / ssl_ciph.c
index 581c8a06ae2789057372c4414e415d5b15c1ad54..0cecd929a3aece10fbcb2ecb3b64a4165d595d37 100644 (file)
@@ -1039,7 +1039,7 @@ static int ssl_cipher_strength_sort(CIPHER_ORDER **head_p,
     }
 
     number_uses = OPENSSL_zalloc(sizeof(int) * (max_strength_bits + 1));
-    if (!number_uses) {
+    if (number_uses == NULL) {
         SSLerr(SSL_F_SSL_CIPHER_STRENGTH_SORT, ERR_R_MALLOC_FAILURE);
         return (0);
     }