summaryrefslogtreecommitdiffstats
path: root/apps/ts.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ts.c')
-rw-r--r--apps/ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/ts.c b/apps/ts.c
index 71b8df1997..0bde4fdf51 100644
--- a/apps/ts.c
+++ b/apps/ts.c
@@ -513,7 +513,7 @@ static int create_digest(BIO *input, const char *digest, const EVP_MD *md,
EVP_MD_CTX *md_ctx = NULL;
md_value_len = EVP_MD_get_size(md);
- if (md_value_len < 0)
+ if (md_value_len <= 0)
return 0;
if (input != NULL) {