Commit 76691b39 authored by Greg Stein's avatar Greg Stein
Browse files

Don't attempt to call apr_xml_parser_done() twice -- just exit when we have

a problem terminating the parser. _geterror() cannot be called either.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91333 13f79535-47bb-0310-9956-ffa450edef68
parent 444ccfc5
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -113,8 +113,11 @@ AP_DECLARE(int) ap_xml_parse_input(request_rec * r, apr_xml_doc **pdoc)

    /* tell the parser that we're done */
    status = apr_xml_parser_done(parser, pdoc);
    if (status)
        goto parser_error;
    if (status) {
        ap_log_rerror(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, r,
                      "XML parser error (at end). status=%d", status);
        return HTTP_BAD_REQUEST;
    }

    return OK;