6953a2
diff --git a/modules/session/mod_session.c b/modules/session/mod_session.c
6953a2
index 7ee477c..049255d 100644
6953a2
--- a/modules/session/mod_session.c
6953a2
+++ b/modules/session/mod_session.c
6953a2
@@ -404,8 +404,8 @@ static apr_status_t session_identity_decode(request_rec * r, session_rec * z)
6953a2
         char *plast = NULL;
6953a2
         const char *psep = "=";
6953a2
         char *key = apr_strtok(pair, psep, &plast);
6953a2
-        char *val = apr_strtok(NULL, psep, &plast);
6953a2
         if (key && *key) {
6953a2
+            char *val = apr_strtok(NULL, sep, &plast);
6953a2
             if (!val || !*val) {
6953a2
                 apr_table_unset(z->entries, key);
6953a2
             }