You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bl...@apache.org on 2006/06/04 08:50:23 UTC

svn commit: r411529 - /xml/security/trunk/c/src/canon/XSECC14n20010315.cpp

Author: blautenb
Date: Sat Jun  3 23:50:23 2006
New Revision: 411529

URL: http://svn.apache.org/viewvc?rev=411529&view=rev
Log:
Fix bug when canonicalisation rooted in a DOMDocument - discovered by Scott Cantor

Modified:
    xml/security/trunk/c/src/canon/XSECC14n20010315.cpp

Modified: xml/security/trunk/c/src/canon/XSECC14n20010315.cpp
URL: http://svn.apache.org/viewvc/xml/security/trunk/c/src/canon/XSECC14n20010315.cpp?rev=411529&r1=411528&r2=411529&view=diff
==============================================================================
--- xml/security/trunk/c/src/canon/XSECC14n20010315.cpp (original)
+++ xml/security/trunk/c/src/canon/XSECC14n20010315.cpp Sat Jun  3 23:50:23 2006
@@ -777,7 +777,7 @@
 					// Have a hit!
 					while (parent != NULL) {
 						atts = parent->getAttributes();
-						att = atts->getNamedItem(a->getNodeName());
+						att = (atts != NULL) ? atts->getNamedItem(a->getNodeName()) : NULL;
 						if (att != NULL && (!m_XPathSelection || m_XPathMap.hasNode(att))) {
 
 							// Check URI is the same