Standardise our style for checking malloc failures
authorMatt Caswell <matt@openssl.org>
Fri, 30 Oct 2015 10:05:53 +0000 (10:05 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 9 Nov 2015 22:48:41 +0000 (22:48 +0000)
commita71edf3ba275b946224b5bcded0a8ecfce1855c0
tree85257ad90882fc4d8d8f73cd91a03b7cc476b9d2
parent3457e7a087a643cb65d67d9d72ec5983a02f5dfe
Standardise our style for checking malloc failures

if we have a malloc |x = OPENSSL_malloc(...)| sometimes we check |x|
for NULL and sometimes we treat it as a boolean |if(!x) ...|. Standardise
the approach in libssl.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
13 files changed:
ssl/d1_lib.c
ssl/record/rec_layer_d1.c
ssl/record/rec_layer_s3.c
ssl/s3_lib.c
ssl/ssl_cert.c
ssl/ssl_ciph.c
ssl/ssl_conf.c
ssl/ssl_lib.c
ssl/ssl_sess.c
ssl/statem/statem_clnt.c
ssl/statem/statem_dtls.c
ssl/statem/statem_srvr.c
ssl/t1_lib.c