diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-02-18 08:03:35 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-02-18 08:04:53 +0100 |
commit | 140c90f4302303faf146c4a509acfb1d21c26164 (patch) | |
tree | 92fc5ab3ba2da94eb3f7d913d153f1a00adcf186 /xmlsecurity | |
parent | 3d441e6d31c13a0cc48b3a26880b9ae65a05c00a (diff) |
Fix "pEncryptedData" not initialized
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx index 30a8e11fcb21..513400814616 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 |