supplimental fix for #106507. we should not fail to send if the S/MIME extension is not

available.  r/sr=mscott
This commit is contained in:
sspitzer%netscape.com 2001-11-01 08:36:23 +00:00
Родитель f3a9db9f7b
Коммит 6010ebacdb
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -1264,7 +1264,11 @@ nsresult nsMsgComposeAndSend::BeginCryptoEncapsulation ()
nsresult rv = NS_OK;
nsCOMPtr<nsIMsgComposeSecure> secureCompose;
secureCompose = do_CreateInstance(NS_MSGCOMPOSESECURE_CONTRACTID, &rv);
if (NS_SUCCEEDED(rv) && secureCompose)
// it's not an error scenario of there is secure compose
if (NS_FAILED(rv))
return NS_OK;
if (secureCompose)
{
PRBool requiresEncryptionWork = PR_FALSE;
secureCompose->RequiresCryptoEncapsulation(mUserIdentity, mCompFields, &requiresEncryptionWork);