diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2008-10-22 18:51:37 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2008-10-22 18:51:37 +0000 |
commit | b6c2bffbdfa65e8c69e6c7f3ada8776a64c5431c (patch) | |
tree | 61698cc11651205cff4715b98f2b6b57254232cc /apps | |
parent | ff09931e227101c1cfedd027a8d58a6a8d8a8db0 (diff) |
Return correct exit code if there is an error in dgst command.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dgst.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dgst.c b/apps/dgst.c index 5a50cc3ef7..9ebfc22e79 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -84,7 +84,7 @@ int MAIN(int argc, char **argv) { ENGINE *e = NULL; unsigned char *buf=NULL; - int i,err=0; + int i,err=1; const EVP_MD *md=NULL,*m; BIO *in=NULL,*inp; BIO *bmd=NULL; @@ -415,6 +415,7 @@ ERR_load_crypto_strings(); else { name=OBJ_nid2sn(md->type); + err = 0; for (i=0; i<argc; i++) { char *tmp,*tofree=NULL; |