checking return value of NSS_Shutdown() - bug 171263
git-svn-id: svn://10.0.0.236/trunk@140491 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c973b5abcd
commit
13a14f2095
@ -363,7 +363,8 @@ exitErr(char *function)
|
||||
{
|
||||
errWarn(function);
|
||||
/* Exit gracefully. */
|
||||
NSS_Shutdown();
|
||||
/* ignoring return value of NSS_Shutdown as code exits with 1*/
|
||||
(void) NSS_Shutdown();
|
||||
PR_Cleanup();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
/*
|
||||
* Test program for client-side OCSP.
|
||||
*
|
||||
* $Id: ocspclnt.c,v 1.4 2002-07-03 20:22:27 javi%netscape.com Exp $
|
||||
* $Id: ocspclnt.c,v 1.5 2003-04-01 18:55:16 bishakhabanerjee%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "secutil.h"
|
||||
@ -1211,7 +1211,9 @@ nssdone:
|
||||
(void) CERT_DisableOCSPChecking (handle);
|
||||
}
|
||||
|
||||
NSS_Shutdown ();
|
||||
if (NSS_Shutdown () != SECSuccess) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
prdone:
|
||||
PR_Cleanup ();
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
/*
|
||||
* Test program for SDR (Secret Decoder Ring) functions.
|
||||
*
|
||||
* $Id: sdrtest.c,v 1.8 2002-09-06 00:27:21 wtc%netscape.com Exp $
|
||||
* $Id: sdrtest.c,v 1.9 2003-04-01 18:58:32 bishakhabanerjee%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "nspr.h"
|
||||
@ -295,7 +295,9 @@ file_loser:
|
||||
loser:
|
||||
if (text.data) free(text.data);
|
||||
if (result.data) free(result.data);
|
||||
NSS_Shutdown();
|
||||
if (NSS_Shutdown() != SECSuccess)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
prdone:
|
||||
PR_Cleanup ();
|
||||
|
||||
@ -381,7 +381,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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user