[xmlsec] signing failure with 0.0.13 that work with 0.0.10
Aleksey Sanin
aleksey@aleksey.com
Wed, 19 Mar 2003 11:07:09 -0800
Fixed in the branch and the trunk (the patch agains 0.0.13 is bellow).
Sorry about that, I've tried to make your patch better :(
Aleksey
Index: apps/xmlsec.c
===================================================================
RCS file: /cvs/gnome/xmlsec/apps/xmlsec.c,v
retrieving revision 1.21.2.5
retrieving revision 1.21.2.6
diff -u -r1.21.2.5 -r1.21.2.6
--- apps/xmlsec.c 5 Feb 2003 17:52:33 -0000 1.21.2.5
+++ apps/xmlsec.c 19 Mar 2003 19:16:49 -0000 1.21.2.6
@@ -1282,10 +1282,12 @@
xmlXPathFreeContext(ctx);
xmlXPathFreeObject(obj);
- } else if(defNodeName != NULL) {
- cur = xmlSecFindNode(xmlDocGetRootElement(doc), defNodeName,
defNodeNs); } else {
cur = xmlDocGetRootElement(doc);
+ }
+
+ if(defNodeName != NULL) {
+ cur = xmlSecFindNode(cur, defNodeName, defNodeNs);
}
return(cur);
}