Commit 798ae543 authored by Daniel Veillard's avatar Daniel Veillard

fixed bug #125812, about XPointer in XInclude failing but not returning an

* xinclude.c: fixed bug #125812, about XPointer in XInclude
  failing but not returning an error.
Daniel
parent a8ff65d7
Mon Nov 3 17:51:28 CET 2003 Daniel Veillard <daniel@veillard.com>
* xinclude.c: fixed bug #125812, about XPointer in XInclude
failing but not returning an error.
Mon Nov 3 17:18:22 CET 2003 Daniel Veillard <daniel@veillard.com>
* valid.c: fixed bug #125811 related to DTD post validation
......
......@@ -1394,6 +1394,13 @@ loaded:
xmlFree(fragment);
return(-1);
case XPATH_NODESET:
if ((xptr->nodesetval == NULL) ||
(xptr->nodesetval->nodeNr <= 0)) {
xmlXPathFreeContext(xptrctxt);
xmlFree(URL);
xmlFree(fragment);
return(-1);
}
case XPATH_RANGE:
case XPATH_LOCATIONSET:
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment