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:39:53 +0000 (13:39 +0000)
commitbe1477adc97e76f4b83ed8075589f529069bd5d1
tree451b6068c8ca61ebbe8047bd6dfc6fbbdc8419a4
parenta561bfe944c0beba73551731cb98af70dfee3549
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>
apps/dgst.c