diff options
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/nssinitializer.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx index 531d71638c1d..1ed0b7006a36 100644 --- a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx +++ b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx @@ -269,6 +269,7 @@ bool nsscrypto_initialize( const css::uno::Reference< css::lang::XMultiServiceFa PR_Init( PR_USER_THREAD, PR_PRIORITY_NORMAL, 1 ) ; + bool bSuccess = true; // there might be no profile if ( !sCertDir.isEmpty() ) { @@ -280,10 +281,11 @@ bool nsscrypto_initialize( const css::uno::Reference< css::lang::XMultiServiceFa PR_GetErrorText(error); if (error) xmlsec_trace("%s",error); - return false ; + bSuccess = false; } } - else + + if( sCertDir.isEmpty() || !bSuccess ) { xmlsec_trace("Initializing NSS without profile."); if ( NSS_NoDB_Init(NULL) != SECSuccess ) |