Standardise our style for checking malloc failures
[openssl.git] / ssl / record / rec_layer_s3.c
index c9f1b712c860300cecc86f078cf5e074b11d2594..ae31f5dd66abe579e534a67fa0f29b4519621187 100644 (file)
@@ -530,7 +530,7 @@ int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
                 packlen *= 4;
 
             wb->buf = OPENSSL_malloc(packlen);
-            if (!wb->buf) {
+            if (wb->buf == NULL) {
                 SSLerr(SSL_F_SSL3_WRITE_BYTES, ERR_R_MALLOC_FAILURE);
                 return -1;
             }