summaryrefslogtreecommitdiff
path: root/ext/session/session.c
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2001-12-26 01:55:54 +0000
committerYasuo Ohgaki <yohgaki@php.net>2001-12-26 01:55:54 +0000
commitfe811866291ee4402458035d1397b734c5566316 (patch)
tree58e2869647540dd3d327dc3a10580631832e4ea0 /ext/session/session.c
parentbd1a88fab6d311a08c3cf8a0eab5406817046880 (diff)
downloadphp-git-fe811866291ee4402458035d1397b734c5566316.tar.gz
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....
Diffstat (limited to 'ext/session/session.c')
-rw-r--r--ext/session/session.c2
1 files changed, 1 insertions, 1 deletions
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;