[Libreoffice-commits] .: xmlsecurity/source

Julien Nabet serval2412 at kemper.freedesktop.org
Fri Feb 17 23:05:47 PST 2012


 xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 140c90f4302303faf146c4a509acfb1d21c26164
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Feb 18 08:03:35 2012 +0100

    Fix "pEncryptedData" not initialized

diff --git a/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx
index 30a8e11..5134008 100644
--- a/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx
@@ -149,6 +149,8 @@ SAL_CALL XMLEncryption_NssImpl :: encrypt(
 
     //remember the position of the element to be signed
     sal_Bool isParentRef = sal_True;
+    pEncryptedData = pTemplate->getNativeElement();
+
     xmlNodePtr pParent = pEncryptedData->parent;
     xmlNodePtr referenceNode;
 
@@ -179,8 +181,6 @@ SAL_CALL XMLEncryption_NssImpl :: encrypt(
         return aTemplate;
     }
 
-    pEncryptedData = pTemplate->getNativeElement() ;
-
     //Find the element to be encrypted.
 
     //Encrypt the template


More information about the Libreoffice-commits mailing list