diff options
author | Matt Caswell <matt@openssl.org> | 2015-11-04 15:51:02 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-11-09 22:54:19 +0000 |
commit | 903738ac63e60c10552741e2d6de9753c67e0ff3 (patch) | |
tree | e2e8b182c351cb41aa65e0cda6d15384223a1f94 /apps/ca.c | |
parent | a89dda8cd024f53cbae75655e9ec000d9b4a320b (diff) | |
download | openssl-903738ac63e60c10552741e2d6de9753c67e0ff3.tar.gz |
Fix missing malloc return value checks
During work on a larger change in master a number of locations were
identified where return value checks were missing. This backports the
relevant fixes.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/ca.c')
-rw-r--r-- | apps/ca.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2532,6 +2532,8 @@ static int do_updatedb(CA_DB *db) char **rrow, *a_tm_s; a_tm = ASN1_UTCTIME_new(); + if (a_tm == NULL) + return -1; /* get actual time and make a string */ a_tm = X509_gmtime_adj(a_tm, 0); |