]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Revert r1574518 to get 2.2/2.4/2.x all back in sync for a single fix
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 7 Mar 2014 20:45:33 +0000 (20:45 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 7 Mar 2014 20:45:33 +0000 (20:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1575394 13f79535-47bb-0310-9956-ffa450edef68

modules/loggers/mod_log_config.c

index 0ccf23f8731fe4c5c0583e0fd8383b028d19ad55..5e666ed4089ff5e3ad4eb7a39b9092cff4fb75a9 100644 (file)
@@ -542,9 +542,8 @@ static const char *log_cookie(request_rec *r, char *a)
         char *cookies = apr_pstrdup(r->pool, cookies_entry);
 
         while ((cookie = apr_strtok(cookies, ";", &last1))) {
-            char *name;
-            if (strchr(cookie, '=') &&
-               (name = apr_strtok(cookie, "=", &last2)) != NULL) {
+            char *name = apr_strtok(cookie, "=", &last2);
+            if (name) {
                 char *value = name + strlen(name) + 1;
                 apr_collapse_spaces(name, name);