зеркало из https://github.com/mozilla/gecko-dev.git
checking return value of NSS_Shutdown. Bug 171263
This commit is contained in:
Родитель
985e092196
Коммит
1b239a8ed0
|
@ -444,7 +444,9 @@ main(int argc, char **argv)
|
|||
|
||||
client_main(port, connections, hostName);
|
||||
|
||||
NSS_Shutdown();
|
||||
if (NSS_Shutdown() != SECSuccess) {
|
||||
exit(1);
|
||||
}
|
||||
PR_Cleanup();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -814,7 +814,9 @@ main(int argc, char **argv)
|
|||
server_main(port, requestCert, privKey, cert, disableSSL3);
|
||||
|
||||
/* Shutdown NSS and exit NSPR gracefully. */
|
||||
NSS_Shutdown();
|
||||
if (NSS_Shutdown() != SECSuccess) {
|
||||
exit(1);
|
||||
}
|
||||
PR_Cleanup();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
/*
|
||||
* Tool for converting builtin CA certs.
|
||||
*
|
||||
* $Id: addbuiltin.c,v 1.5 2002/10/30 17:22:06 relyea%netscape.com Exp $
|
||||
* $Id: addbuiltin.c,v 1.6 2003/01/07 22:22:10 bishakhabanerjee%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "nss.h"
|
||||
|
@ -194,7 +194,7 @@ printheader() {
|
|||
"# may use your version of this file under either the MPL or the\n"
|
||||
"# GPL.\n"
|
||||
"#\n"
|
||||
"CVS_ID \"@(#) $RCSfile: addbuiltin.c,v $ $Revision: 1.5 $ $Date: 2002/10/30 17:22:06 $ $Name: $\"\n"
|
||||
"CVS_ID \"@(#) $RCSfile: addbuiltin.c,v $ $Revision: 1.6 $ $Date: 2003/01/07 22:22:10 $ $Name: $\"\n"
|
||||
"\n"
|
||||
"#\n"
|
||||
"# certdata.txt\n"
|
||||
|
@ -349,7 +349,9 @@ main(int argc, char **argv)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
NSS_Shutdown();
|
||||
if (NSS_Shutdown() != SECSuccess) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
return(SECSuccess);
|
||||
}
|
||||
|
|
|
@ -2825,7 +2825,10 @@ shutdown:
|
|||
if (pubkey) {
|
||||
SECKEY_DestroyPublicKey(pubkey);
|
||||
}
|
||||
NSS_Shutdown();
|
||||
|
||||
if (NSS_Shutdown() != SECSuccess) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (rv == SECSuccess) {
|
||||
return 0;
|
||||
|
|
|
@ -469,6 +469,9 @@ int main(int argc, char **argv)
|
|||
}
|
||||
#endif
|
||||
}
|
||||
NSS_Shutdown();
|
||||
if (NSS_Shutdown() != SECSuccess) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
return (rv);
|
||||
}
|
||||
|
|
|
@ -912,7 +912,10 @@ main(int argc, char *argv[])
|
|||
break;
|
||||
}
|
||||
|
||||
NSS_Shutdown();
|
||||
if (NSS_Shutdown() != SECSuccess) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
loser:
|
||||
PR_Cleanup();
|
||||
return errcode;
|
||||
|
|
|
@ -1144,7 +1144,10 @@ main(int argc, char **argv)
|
|||
(certsTested != connections);
|
||||
|
||||
exitVal = ( exitVal || failed_already );
|
||||
NSS_Shutdown();
|
||||
if (NSS_Shutdown() != SECSuccess) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
PR_Cleanup();
|
||||
return exitVal;
|
||||
}
|
||||
|
|
|
@ -447,7 +447,10 @@ main(int argc, char **argv)
|
|||
|
||||
client_main(port, connections, hostName);
|
||||
|
||||
NSS_Shutdown();
|
||||
if (NSS_Shutdown() != SECSuccess) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
PR_Cleanup();
|
||||
PORT_Free(progName);
|
||||
return 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче