From: Jim Jagielski Date: Wed, 5 Mar 2014 15:00:56 +0000 (+0000) Subject: ensure cookies have name/value X-Git-Tag: 2.5.0-alpha~4426 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82756fe342d55c97d3c2de33503612fb0017d59d;p=thirdparty%2Fapache%2Fhttpd.git ensure cookies have name/value git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1574518 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/loggers/mod_log_config.c b/modules/loggers/mod_log_config.c index 5e666ed4089..0ccf23f8731 100644 --- a/modules/loggers/mod_log_config.c +++ b/modules/loggers/mod_log_config.c @@ -542,8 +542,9 @@ 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 = apr_strtok(cookie, "=", &last2); - if (name) { + char *name; + if (strchr(cookie, '=') && + (name = apr_strtok(cookie, "=", &last2)) != NULL) { char *value = name + strlen(name) + 1; apr_collapse_spaces(name, name);