]> granicus.if.org Git - libexpat/commitdiff
Fix error reporting in external entity test handler
authorRhodri James <rhodri@kynesim.co.uk>
Thu, 2 Mar 2017 19:58:54 +0000 (19:58 +0000)
committerSebastian Pipping <sebastian@pipping.org>
Sat, 22 Jul 2017 19:29:55 +0000 (21:29 +0200)
expat/tests/runtests.c

index 2d6ea36b30e9e4f66a35b865b08801187b02d355..01e92bb3097c8014482d13523b940042ecfa2375 100644 (file)
@@ -1180,7 +1180,7 @@ external_entity_loader(XML_Parser parser,
                                  strlen(test_data->parse_text),
                                  XML_TRUE)
           == XML_STATUS_ERROR) {
-        xml_failure(parser);
+        xml_failure(extparser);
         return XML_STATUS_ERROR;
     }
     XML_ParserFree(extparser);