From: Jim Jagielski Date: Wed, 5 Mar 2014 15:00:56 +0000 (+0000) Subject: ensure cookies have name/value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fbda24a4f8fc76f5baf32d412cfc24c71ab99e2;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);