From: Yasuo Ohgaki Date: Wed, 26 Dec 2001 01:55:54 +0000 (+0000) Subject: Fix crash with external session save handlers X-Git-Tag: PRE_ISSET_PATCH~412 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe811866291ee4402458035d1397b734c5566316;p=php 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.... --- 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;