From 795083a15cf9a721e206b79ed2c8f946d10aeeae Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 5 Sep 2000 22:42:45 +0000 Subject: Now it should not crash, though still leaks # I'll continue with it tomorrow --- ext/session/session.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ext/session/session.c b/ext/session/session.c index 7fc84f4dbe..7d72c116b7 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1397,9 +1397,16 @@ static void php_rinit_session_globals(PSLS_D) PS(id) = NULL; PS(nr_open_sessions) = 0; PS(mod_data) = NULL; + PS(entropy_file) = estrdup(INI_STR("entropy_file")); + PS(extern_referer_chk) = estrdup(INI_STR("extern_referer_chk")); + PS(save_path) = estrdup(INI_STR("save_path")); + PS(session_name) = estrdup(INI_STR("session_name")); + PS(cache_limiter) = estrdup(INI_STR("cache_limiter")); + PS(cookie_path) = estrdup(INI_STR("cookie_path")); + PS(cookie_domain) = estrdup(INI_STR("cookie_domain")); } -#define FREE_NULL(x) efree(x); (x) = NULL; +#define FREE_NULL(x) STR_FREE(x); (x) = NULL; static void php_rshutdown_session_globals(PSLS_D) { -- cgit v1.2.1