Kaydet (Commit) b270233f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-analyzer-deadcode.DeadStores

Change-Id: Ic94b5fdcf88a9580e816aceb199753e88636810a
üst 7fa6bded
...@@ -358,7 +358,7 @@ namespace { ...@@ -358,7 +358,7 @@ namespace {
} // namespace } // namespace
extern "C" int NeonSession_CertificationNotify( void *userdata, extern "C" int NeonSession_CertificationNotify( void *userdata,
int failures, int,
const ne_ssl_certificate *cert ) const ne_ssl_certificate *cert )
{ {
OSL_ASSERT( cert ); OSL_ASSERT( cert );
...@@ -376,8 +376,6 @@ extern "C" int NeonSession_CertificationNotify( void *userdata, ...@@ -376,8 +376,6 @@ extern "C" int NeonSession_CertificationNotify( void *userdata,
if ( !xCertificateContainer.is() ) if ( !xCertificateContainer.is() )
return 1; return 1;
failures = 0;
char * dn = ne_ssl_readable_dname( ne_ssl_cert_subject( cert ) ); char * dn = ne_ssl_readable_dname( ne_ssl_cert_subject( cert ) );
OUString cert_subject( dn, strlen( dn ), RTL_TEXTENCODING_UTF8, 0 ); OUString cert_subject( dn, strlen( dn ), RTL_TEXTENCODING_UTF8, 0 );
...@@ -462,15 +460,13 @@ extern "C" int NeonSession_CertificationNotify( void *userdata, ...@@ -462,15 +460,13 @@ extern "C" int NeonSession_CertificationNotify( void *userdata,
pSession->getRequestEnvironment().m_xEnv ); pSession->getRequestEnvironment().m_xEnv );
if ( xEnv.is() ) if ( xEnv.is() )
{ {
failures = static_cast< int >( certValidity );
uno::Reference< task::XInteractionHandler > xIH( uno::Reference< task::XInteractionHandler > xIH(
xEnv->getInteractionHandler() ); xEnv->getInteractionHandler() );
if ( xIH.is() ) if ( xIH.is() )
{ {
rtl::Reference< ucbhelper::SimpleCertificateValidationRequest > rtl::Reference< ucbhelper::SimpleCertificateValidationRequest >
xRequest( new ucbhelper::SimpleCertificateValidationRequest( xRequest( new ucbhelper::SimpleCertificateValidationRequest(
(sal_Int32)failures, xEECert, pSession->getHostName() ) ); (sal_Int32)certValidity, xEECert, pSession->getHostName() ) );
xIH->handle( xRequest.get() ); xIH->handle( xRequest.get() );
rtl::Reference< ucbhelper::InteractionContinuation > xSelection rtl::Reference< ucbhelper::InteractionContinuation > xSelection
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment