]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Correct string scope to prevent duplicated values for subsequent tokens.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 6 Jul 2017 03:30:41 +0000 (03:30 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 6 Jul 2017 03:30:41 +0000 (03:30 +0000)
Submitted by: wrowe
Backports: r1800919
Reviewed by: wrowe, jchampion, ylavic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1800962 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/aaa/mod_auth_digest.c

diff --git a/STATUS b/STATUS
index 24396ffee90cd27b82fe2a5ac0e1999602d52a1f..be0ae30c1e2a4a7cd2455375874b4b56aa7ba963 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -110,11 +110,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
       trunk patch: http://svn.apache.org/r1800917
       +1: wrowe, jchampion (inspection), ylavic
 
-   *) Correct string scope to prevent duplicated values for subsequent tokens.
-      Submitted by: wrowe
-      trunk patch: http://svn.apache.org/r1800919
-      +1: wrowe, jchampion, ylavic
-
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
index 4d088c3d70e4de43d795f7f8db6fb81d263930fc..cb409f125eb5b2ac4bc4d44d22e95f3a6d11bdb4 100644 (file)
@@ -894,13 +894,13 @@ static int get_digest_rec(request_rec *r, digest_header_rec *resp)
 
         /* find value */
 
+        vv = 0;
         if (auth_line[0] == '=') {
             auth_line++;
             while (apr_isspace(auth_line[0])) {
                 auth_line++;
             }
 
-            vv = 0;
             if (auth_line[0] == '\"') {         /* quoted string */
                 auth_line++;
                 while (auth_line[0] != '\"' && auth_line[0] != '\0') {
@@ -919,8 +919,8 @@ static int get_digest_rec(request_rec *r, digest_header_rec *resp)
                     value[vv++] = *auth_line++;
                 }
             }
-            value[vv] = '\0';
         }
+        value[vv] = '\0';
 
         while (auth_line[0] != ',' && auth_line[0] != '\0') {
             auth_line++;