openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r1716176 - /openoffice/trunk/main/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
Date Tue, 24 Nov 2015 15:37:06 GMT
Author: pfg
Date: Tue Nov 24 15:37:05 2015
New Revision: 1716176

URL: http://svn.apache.org/viewvc?rev=1716176&view=rev
Log:
Dereference after null check

CID:	982591

Modified:
    openoffice/trunk/main/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx

Modified: openoffice/trunk/main/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx?rev=1716176&r1=1716175&r2=1716176&view=diff
==============================================================================
--- openoffice/trunk/main/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx (original)
+++ openoffice/trunk/main/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx Tue
Nov 24 15:37:05 2015
@@ -548,9 +548,9 @@ SecurityEnvironment_NssImpl::getPersonal
 				if( xcert != NULL )
 					certsList.push_back( xcert ) ;
 			}
+			SECKEY_DestroyPrivateKeyList( priKeyList ) ;
 		}
 
-		SECKEY_DestroyPrivateKeyList( priKeyList ) ;
 	}
 
 	//secondly, we try to find certificate from registered private keys.



Mime
View raw message