1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-25 10:50:08 +03:00

parser: Make xmlParseChunk return an error if parser was stopped

This regressed after enhancing the disableSAX member in 2.13.

Should fix #777.
This commit is contained in:
Nick Wellnhofer 2024-07-25 17:07:18 +02:00
parent bc14d70f49
commit 02fcb1effb

View File

@ -11625,7 +11625,7 @@ xmlParseChunk(xmlParserCtxtPtr ctxt, const char *chunk, int size,
xmlHaltParser(ctxt);
}
if ((ctxt->errNo != XML_ERR_OK) && (ctxt->disableSAX == 1))
if ((ctxt->errNo != XML_ERR_OK) && (ctxt->disableSAX != 0))
return(ctxt->errNo);
if (end_in_lf == 1) {