summaryrefslogtreecommitdiffstats
path: root/modules/session/mod_session.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/session/mod_session.c')
-rw-r--r--modules/session/mod_session.c3
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) {