Checking return value of NSS_Shutdown() - bug 171263

git-svn-id: svn://10.0.0.236/trunk@140492 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bishakhabanerjee%netscape.com 2003-04-01 19:05:56 +00:00
parent 13a14f2095
commit 5e867ccb38
2 changed files with 8 additions and 3 deletions

View File

@ -860,6 +860,8 @@ main(int argc, char **argv)
done:
if (slot) PK11_FreeSlot(slot);
NSS_Shutdown();
if (NSS_Shutdown() != SECSuccess) {
exit(1);
}
exit(pk12uErrno);
}

View File

@ -122,7 +122,8 @@ exitErr(char *function)
{
errWarn(function);
/* Exit gracefully. */
NSS_Shutdown();
/* ignoring return value of NSS_Shutdown as code exits with 1 anyway*/
(void) NSS_Shutdown();
PR_Cleanup();
exit(1);
}
@ -429,7 +430,9 @@ breakout:
punt:
forgetCerts();
NSS_Shutdown();
if (NSS_Shutdown != SECSuccess) {
exit(1);
}
PR_Cleanup();
return 0;
}