From fe811866291ee4402458035d1397b734c5566316 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Wed, 26 Dec 2001 01:55:54 +0000 Subject: [PATCH] Fix crash with external session save handlers # This fixes only a little issue with sub modules # More fixes are needed to make sub modules work correctly. # 4.1.x also has the same problem.... --- ext/session/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/session/session.c b/ext/session/session.c index e422636f81..bc58ec00d2 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1062,7 +1062,7 @@ PHP_FUNCTION(session_module_name) int ac = ZEND_NUM_ARGS(); char *old; - old = estrdup(PS(mod)->name); + old = safe_estrdup(PS(mod)->name); if (ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &p_name) == FAILURE) WRONG_PARAM_COUNT; -- 2.40.0