summaryrefslogtreecommitdiff
path: root/usr/src/cmd/cmd-crypto/digest/digest.c
diff options
context:
space:
mode:
authorAnthony Scarpino <Anthony.Scarpino@Sun.COM>2008-12-08 14:08:48 -0800
committerAnthony Scarpino <Anthony.Scarpino@Sun.COM>2008-12-08 14:08:48 -0800
commita7e661a2db6ff10cd43a089e7f4dcbd0cfd609f1 (patch)
treeecdc4ead234585574bb80c075a3ee08852c62999 /usr/src/cmd/cmd-crypto/digest/digest.c
parent052576a327519e946a54d8455e94f605d1505992 (diff)
downloadillumos-joyent-a7e661a2db6ff10cd43a089e7f4dcbd0cfd609f1.tar.gz
6773289 libcryptoutil needs to interact with calling functions better
Diffstat (limited to 'usr/src/cmd/cmd-crypto/digest/digest.c')
-rw-r--r--usr/src/cmd/cmd-crypto/digest/digest.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/cmd/cmd-crypto/digest/digest.c b/usr/src/cmd/cmd-crypto/digest/digest.c
index a12e4e236c..e2971efad2 100644
--- a/usr/src/cmd/cmd-crypto/digest/digest.c
+++ b/usr/src/cmd/cmd-crypto/digest/digest.c
@@ -23,8 +23,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* digest.c
*
@@ -430,7 +428,7 @@ execute_cmd(char *algo_str, int filecount, char **filelist, boolean_t mac_cmd)
0, B_FALSE);
}
- if (status == -1 || keylen == 0 || pkeydata == NULL) {
+ if (status != 0 || keylen == 0 || pkeydata == NULL) {
cryptoerror(LOG_STDERR,
Kflag ? gettext("invalid passphrase.") :
gettext("invalid key."));