diff --git a/mozilla/security/nss/lib/nss/nssinit.c b/mozilla/security/nss/lib/nss/nssinit.c index f45bae40e95..79a1763bee1 100644 --- a/mozilla/security/nss/lib/nss/nssinit.c +++ b/mozilla/security/nss/lib/nss/nssinit.c @@ -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 #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;