]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
backport from trunk:
authorJeff Trawick <trawick@apache.org>
Sun, 11 Sep 2005 13:14:58 +0000 (13:14 +0000)
committerJeff Trawick <trawick@apache.org>
Sun, 11 Sep 2005 13:14:58 +0000 (13:14 +0000)
  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

STATUS
modules/aaa/mod_auth_digest.c

diff --git a/STATUS b/STATUS
index 8b105e0e1179c1cb1a1678c4c8b5d7d271df503e..602b1730fb6c71842f71151088208e5822a57b8d 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -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
index 137ca0c5995fcc3fb016c6cef7b788dc00057c9e..be107b94ed7ff718376d8145cb3aa20358c931ad 100644 (file)
@@ -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);