From b680a69533bf444e5099c41c09ce54a14b4782b4 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Wed, 5 Jul 2017 19:44:30 +0000 Subject: [PATCH] Correct string scope to prevent duplicated values for subsequent tokens. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1800919 13f79535-47bb-0310-9956-ffa450edef68 --- modules/aaa/mod_auth_digest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/aaa/mod_auth_digest.c b/modules/aaa/mod_auth_digest.c index b0a96823da7..7179f1dc970 100644 --- a/modules/aaa/mod_auth_digest.c +++ b/modules/aaa/mod_auth_digest.c @@ -952,13 +952,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') { @@ -977,8 +977,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++; -- 2.47.3