summaryrefslogtreecommitdiff
path: root/cmd/shlibsign
diff options
context:
space:
mode:
authorKai Engert <kaie@kuix.de>2013-06-11 21:13:19 +0200
committerKai Engert <kaie@kuix.de>2013-06-11 21:13:19 +0200
commit1e62b3cbbb3c71a6d269ae6a5215331ca813c894 (patch)
tree5fa81e11953595725192c9df0c3280f62f0a6178 /cmd/shlibsign
parentbc94dae15160d4e99d08b38a9bb5a2c0ca521a87 (diff)
downloadnss-hg-1e62b3cbbb3c71a6d269ae6a5215331ca813c894.tar.gz
Bug 565296 - shlibsign returns 0 although it fails, r=rrelyea
Diffstat (limited to 'cmd/shlibsign')
-rw-r--r--cmd/shlibsign/shlibsign.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/shlibsign/shlibsign.c b/cmd/shlibsign/shlibsign.c
index 82087b5db..51604414f 100644
--- a/cmd/shlibsign/shlibsign.c
+++ b/cmd/shlibsign/shlibsign.c
@@ -701,6 +701,7 @@ int main(int argc, char **argv)
int i;
PRBool verify = PR_FALSE;
static PRBool FIPSMODE = PR_FALSE;
+ PRBool successful = PR_FALSE;
#ifdef USES_LINKS
int ret;
@@ -1245,6 +1246,8 @@ int main(int argc, char **argv)
}
#endif
+ successful = PR_TRUE;
+
cleanup:
if (pFunctionList) {
/* C_Finalize will automatically logout, close session, */
@@ -1281,5 +1284,8 @@ cleanup:
}
PR_Cleanup();
- return crv;
+ if (crv != CKR_OK)
+ return crv;
+
+ return (successful) ? 0 : 1;
}