X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Fdgst.c;h=5d5ab94aea01ee5a1b7005d7be28ba0976ba27cb;hp=a151fb84576accc1a81cd34bc4d9c47f3b83b459;hb=623eea376a7bff6d50c88407c10f279e6f838de4;hpb=5ef8093732ab22266a69043e1209be80eb8b83c2;ds=sidebyside 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);