diff options
author | Ben Laurie <ben@openssl.org> | 2008-12-29 16:11:58 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2008-12-29 16:11:58 +0000 |
commit | 0eab41fb78cf4d7c76e563fd677ab6c32fc28bb0 (patch) | |
tree | da848c7424ced86fc60823f4948b0fc79e52a381 /apps/ts.c | |
parent | 8aa02e97a782a4229936d5df6da42db3efe4acd1 (diff) | |
download | openssl-0eab41fb78cf4d7c76e563fd677ab6c32fc28bb0.tar.gz |
If we're going to return errors (no matter how stupid), then we should
test for them!
Diffstat (limited to 'apps/ts.c')
-rw-r--r-- | apps/ts.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -598,6 +598,8 @@ static int create_digest(BIO *input, char *digest, const EVP_MD *md, int md_value_len; md_value_len = EVP_MD_size(md); + if (md_value_len < 0) + goto err; if (input) { /* Digest must be computed from an input file. */ |