Skip to content

Commit

Permalink
siglen is unsigned, so comparing it to less than 0 is silly, and
Browse files Browse the repository at this point in the history
generates a compiler warning with Compaq C.
  • Loading branch information
levitte committed Sep 17, 2000
1 parent 5ef8093 commit 623eea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dgst.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 623eea3

Please sign in to comment.