Move malloc fail checks closer to malloc
authorMatt Caswell <matt@openssl.org>
Thu, 12 Mar 2015 11:25:03 +0000 (11:25 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 17 Mar 2015 13:49:31 +0000 (13:49 +0000)
commitd3554bff69d97b15fef063bdb0176a0b68021325
tree0d98789c4e10b0cf782b38177dea7f2717980207
parent3f9117e161246f2f09754e277f2c986a840c1f74
Move malloc fail checks closer to malloc

Move memory allocation failure checks closer to the site of the malloc in
dgst app. Only a problem if the debug flag is set...but still should be
fixed.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit be1477adc97e76f4b83ed8075589f529069bd5d1)
apps/dgst.c