Fix for bug 335036 . NSS_Shutdown() does not check that NSS is initialized. r=nelson, alexei

git-svn-id: svn://10.0.0.236/trunk@196611 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
julien.pierre.bugs%sun.com
2006-05-16 00:11:25 +00:00
parent 56763cafe5
commit 13e8e05e33

View File

@@ -36,7 +36,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/* $Id: nssinit.c,v 1.72 2006-04-08 05:11:55 nelson%bolyard.com Exp $ */
/* $Id: nssinit.c,v 1.73 2006-05-16 00:10:04 julien.pierre.bugs%sun.com Exp $ */
#include <ctype.h>
#include "seccomon.h"
@@ -776,6 +776,11 @@ NSS_Shutdown(void)
SECStatus rv;
PRStatus status;
if (!nss_IsInitted) {
PORT_SetError(SEC_ERROR_NOT_INITIALIZED);
return SECFailure;
}
rv = nss_ShutdownShutdownList();
if (rv != SECSuccess) {
shutdownRV = SECFailure;