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:48:04 +0000 (13:48 +0000)
commit56490fc26ff9dc2da162e6dc0675762edf607c1d
treef53640fe8a01dd21fd9eeea97798ef78c07f485d
parentf2e95a02b114d824905a5e2642287e060270515c
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