summaryrefslogtreecommitdiffstats
path: root/worker/output_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'worker/output_handler.c')
-rw-r--r--worker/output_handler.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/worker/output_handler.c b/worker/output_handler.c
index 7300f1d..f082a0f 100644
--- a/worker/output_handler.c
+++ b/worker/output_handler.c
@@ -215,13 +215,13 @@ int find_output_handler(const char *policy_file_name, const char *xslt_file_name
xmlDocPtr doc=NULL;
doc = xmlParseFile(policy_file_name);
- CHECK(doc, NULL, ("Cannot parse file %s!\n", policy_file_name), exit(1));
+ CHECK(doc, NULL, ("Cannot parse file %s!\n", policy_file_name), goto failed);
xslt_doc = xmlParseFile(xslt_file_name);
- CHECK(xslt_doc, NULL, ("Cannot parse file %s!\n", xslt_file_name), exit(1));
+ CHECK(xslt_doc, NULL, ("Cannot parse file %s!\n", xslt_file_name), goto failed);
xpath_context = xmlXPathNewContext(xslt_doc);
- CHECK(xpath_context, NULL, ("Error: unable to create new XPath context\n"), exit(1));
+ CHECK(xpath_context, NULL, ("Error: unable to create new XPath context\n"), goto failed);
if (xmlXPathRegisterNs(xpath_context, XSLT_METADATA_NAMESPACE_PREFIX, XSLT_METADATA_NAMESPACE) != 0) {
DEBUG(0,