summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorStefan2010-03-26 10:10:08 +0100
committerStefan2010-03-26 10:10:08 +0100
commitc47fb8b3bcd2d27358d19ae04062779b442512db (patch)
treeae43a5473abbd0baac79ca4d23539a8fc9748d93 /session.c
parentdd2718e1d026d8e7b1594754cf94e4dffa367cb6 (diff)
Fix ZTS build
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.c b/session.c
index 64b4822..6b26b11 100644
--- a/session.c
+++ b/session.c
@@ -346,7 +346,7 @@ int suhosin_session_encode(char **newstr, int *newlen TSRMLS_DC)
346 return SUCCESS; 346 return SUCCESS;
347} 347}
348 348
349static void suhosin_send_cookie() 349static void suhosin_send_cookie(TSRMLS_D)
350{ 350{
351 int * session_send_cookie = &SESSION_G(send_cookie); 351 int * session_send_cookie = &SESSION_G(send_cookie);
352 char * base; 352 char * base;
@@ -641,7 +641,7 @@ static int suhosin_hook_s_read(void **mod_data, const char *key, char **val, int
641regenerate: 641regenerate:
642 SDEBUG("regenerating key is %s", key); 642 SDEBUG("regenerating key is %s", key);
643 KEY = SESSION_G(id) = SESSION_G(mod)->s_create_sid(&SESSION_G(mod_data), NULL TSRMLS_CC); 643 KEY = SESSION_G(id) = SESSION_G(mod)->s_create_sid(&SESSION_G(mod_data), NULL TSRMLS_CC);
644 suhosin_send_cookie(); 644 suhosin_send_cookie(TSRMLS_C);
645 } else if (strlen(key) > SUHOSIN_G(session_max_id_length)) { 645 } else if (strlen(key) > SUHOSIN_G(session_max_id_length)) {
646 suhosin_log(S_SESSION, "session id ('%s') exceeds maximum length - regenerating", KEY); 646 suhosin_log(S_SESSION, "session id ('%s') exceeds maximum length - regenerating", KEY);
647 if (!SUHOSIN_G(simulation)) { 647 if (!SUHOSIN_G(simulation)) {