diff options
Diffstat (limited to 'session.c')
| -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)) { |
