From 0eab41fb78cf4d7c76e563fd677ab6c32fc28bb0 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Mon, 29 Dec 2008 16:11:58 +0000 Subject: If we're going to return errors (no matter how stupid), then we should test for them! --- apps/ts.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/ts.c') diff --git a/apps/ts.c b/apps/ts.c index 08b8c4a9e1..74e7e932b3 100644 --- a/apps/ts.c +++ b/apps/ts.c @@ -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. */ -- cgit v1.2.3