summaryrefslogtreecommitdiffstats
path: root/apps/dgst.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-09-17 18:08:38 +0000
committerRichard Levitte <levitte@openssl.org>2000-09-17 18:08:38 +0000
commit623eea376a7bff6d50c88407c10f279e6f838de4 (patch)
treef60b162f1e09bd55e23bc33541a4b60b6d7e6cdb /apps/dgst.c
parent5ef8093732ab22266a69043e1209be80eb8b83c2 (diff)
siglen is unsigned, so comparing it to less than 0 is silly, and
generates a compiler warning with Compaq C.
Diffstat (limited to 'apps/dgst.c')
-rw-r--r--apps/dgst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dgst.c b/apps/dgst.c
index a151fb8457..5d5ab94aea 100644
--- a/apps/dgst.c
+++ b/apps/dgst.c
@@ -280,7 +280,7 @@ int MAIN(int argc, char **argv)
}
siglen = BIO_read(sigbio, sigbuf, siglen);
BIO_free(sigbio);
- if(siglen <= 0) {
+ if(siglen == 0) {
BIO_printf(bio_err, "Error reading signature file %s\n",
sigfile);
ERR_print_errors(bio_err);