diff options
| author | Stefan | 2010-03-26 10:10:08 +0100 |
|---|---|---|
| committer | Stefan | 2010-03-26 10:10:08 +0100 |
| commit | c47fb8b3bcd2d27358d19ae04062779b442512db (patch) | |
| tree | ae43a5473abbd0baac79ca4d23539a8fc9748d93 | |
| parent | dd2718e1d026d8e7b1594754cf94e4dffa367cb6 (diff) | |
Fix ZTS build
| -rw-r--r-- | session.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -346,7 +346,7 @@ int suhosin_session_encode(char **newstr, int *newlen TSRMLS_DC) | |||
| 346 | return SUCCESS; | 346 | return SUCCESS; |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | static void suhosin_send_cookie() | 349 | static 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 | |||
| 641 | regenerate: | 641 | regenerate: |
| 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)) { |
