From 2d2f155224f658a05c30912464a616814a4fbb15 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Sun, 21 Dec 2003 23:36:39 +0000 Subject: [PATCH] fixed a serious problem in XInclude #129021 Daniel * xinclude.c: fixed a serious problem in XInclude #129021 Daniel --- ChangeLog | 4 ++++ xinclude.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 668b551d..676eb53a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Dec 22 00:34:09 CET 2003 Daniel Veillard + + * xinclude.c: fixed a serious problem in XInclude #129021 + Sun Dec 21 13:59:54 CET 2003 Daniel Veillard * parser.c: fixed bug #129489, propagation of parsing flags diff --git a/xinclude.c b/xinclude.c index 3bfbc728..b68c3081 100644 --- a/xinclude.c +++ b/xinclude.c @@ -455,7 +455,7 @@ xmlXIncludeParseFile(xmlXIncludeCtxtPtr ctxt, const char *URL) { xmlFreeDoc(pctxt->myDoc); pctxt->myDoc = NULL; } - if ((pctxt->myDoc != NULL) && (pctxt->dict == pctxt->myDoc->dict)) + if ((ctxt->doc != NULL) && (pctxt->dict == ctxt->doc->dict)) xmlDictReference(pctxt->dict); xmlFreeParserCtxt(pctxt);