diff options
author | Yann Ylavic <ylavic@apache.org> | 2021-03-01 21:13:54 +0100 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2021-03-01 21:13:54 +0100 |
commit | 7e09dd714fc62c08c5b0319ed7b9702594faf49b (patch) | |
tree | 5787c4094284fc2ee4e2c64e24dec845bcfd85d7 /modules/session/mod_session.c | |
parent | mod_session: save one apr_strtok() in session_identity_decode(). (diff) | |
download | apache2-7e09dd714fc62c08c5b0319ed7b9702594faf49b.tar.xz apache2-7e09dd714fc62c08c5b0319ed7b9702594faf49b.zip |
mod_session: account for the '&' in identity_concat().
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887052 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/session/mod_session.c')
-rw-r--r-- | modules/session/mod_session.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/session/mod_session.c b/modules/session/mod_session.c index 01f41fe5d0..a41e58444f 100644 --- a/modules/session/mod_session.c +++ b/modules/session/mod_session.c @@ -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; } @@ -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) { |