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:
bishakhabanerjee%netscape.com 2003-04-01 19:00:50 +00:00
parent c973b5abcd
commit 13a14f2095
4 changed files with 12 additions and 6 deletions

View File

@ -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);
}

View File

@ -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 ();

View File

@ -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 ();

View File

@ -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);
}