Skip to content

Commit

Permalink
mod_session: account for the '&' in identity_concat().
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887052 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
ylavic committed Mar 1, 2021
1 parent 67bd9bf commit 7e09dd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changes-entries/session_parsing.txt
@@ -0,0 +1,2 @@
*) mod_session: Improve session parsing. [Yann Yalvic]

3 changes: 1 addition & 2 deletions modules/session/mod_session.c
Expand Up @@ -326,7 +326,7 @@ static apr_status_t ap_session_set(request_rec * r, session_rec * z,
static int identity_count(void *v, const char *key, const char *val)
{
int *count = v;
*count += strlen(key) * 3 + strlen(val) * 3 + 1;
*count += strlen(key) * 3 + strlen(val) * 3 + 2;
return 1;
}

Expand Down Expand Up @@ -362,7 +362,6 @@ static int identity_concat(void *v, const char *key, const char *val)
*/
static apr_status_t session_identity_encode(request_rec * r, session_rec * z)
{

char *buffer = NULL;
int length = 0;
if (z->expiry) {
Expand Down

0 comments on commit 7e09dd7

Please sign in to comment.