Fix for issue #2517938: xmlwf should return a non-zero code for parsing errors.
diff --git a/expat/xmlwf/xmlwf.c b/expat/xmlwf/xmlwf.c
index 41a433d..4fc77da 100755
--- a/expat/xmlwf/xmlwf.c
+++ b/expat/xmlwf/xmlwf.c
@@ -849,8 +849,10 @@
       if (outputType == 'm')
         metaEndDocument(parser);
       fclose(fp);
-      if (!result)
+      if (!result) {
         tremove(outName);
+        exit(2);
+      }
       free(outName);
     }
     XML_ParserFree(parser);