fixing the xmlSAXParseDTD bug #119536 raised by Malcolm Tredinnick with

* parser.c: fixing the xmlSAXParseDTD bug #119536 raised by
  Malcolm Tredinnick with the patch he suggested.
Daniel
diff --git a/ChangeLog b/ChangeLog
index b2c6272..6119ba5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Aug 15 01:55:53 CEST 2003 Daniel Veillard <daniel@veillard.com>
+
+	* parser.c: fixing the xmlSAXParseDTD bug #119536 raised by
+	  Malcolm Tredinnick with the patch he suggested.
+
 Fri Aug 15 01:37:10 CEST 2003 Daniel Veillard <daniel@veillard.com>
 
 	* HTMLparser.c: allocation error #119784 raised by Oliver Stoeneberg
diff --git a/parser.c b/parser.c
index 82caf10..96acf99 100644
--- a/parser.c
+++ b/parser.c
@@ -9600,7 +9600,7 @@
 	if (ctxt->sax != NULL)
 	    xmlFree(ctxt->sax);
         ctxt->sax = sax;
-        ctxt->userData = NULL;
+        ctxt->userData = ctxt;
     }
 
     /*