Commit 492cade3 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

backport from trunk:

  mod_auth_digest: Fix hostinfo validation for CONNECT requests.

Submitted by: jorton
Reviewed by: nd, jerenkrantz


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@280126 13f79535-47bb-0310-9956-ffa450edef68
parent 2febaf16
Loading
Loading
Loading
Loading
+0 −4
Changes for STATUS: 0 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -189,10 +189,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
         modules/proxy/mod_proxy_ftp.c: r231044
       +1: minfrin, jim, nd

    *) mod_auth_digest: Fix hostinfo validation for CONNECT requests.
         http://svn.apache.org/viewcvs.cgi?rev=193127&view=rev
       +1: jorton, nd, jerenkrantz

    *) mod_version: New Module, Backport from trunk. Requires Minor MMN Bump.
       http://svn.apache.org/repos/asf/httpd/httpd/branches/mod_version_for_2.0.x
       +1: pquerna, nd, wrowe
+3 −1
Changes for modules/aaa/mod_auth_digest.c: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -1504,6 +1504,8 @@ static void copy_uri_components(apr_uri_t *dst,
    else {
        dst->query = src->query;
    }

    dst->hostinfo = src->hostinfo;
}

/* These functions return 0 if client is OK, and proper error status
@@ -1631,7 +1633,7 @@ static int authenticate_digest_user(request_rec *r)
        }

        if (r->method_number == M_CONNECT) {
            if (strcmp(resp->uri, r_uri.hostinfo)) {
            if (!r_uri.hostinfo || strcmp(resp->uri, r_uri.hostinfo)) {
                ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
                              "Digest: uri mismatch - <%s> does not match "
                              "request-uri <%s>", resp->uri, r_uri.hostinfo);