]> granicus.if.org Git - php/commitdiff
Fix crash with external session save handlers
authorYasuo Ohgaki <yohgaki@php.net>
Wed, 26 Dec 2001 01:55:54 +0000 (01:55 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Wed, 26 Dec 2001 01:55:54 +0000 (01:55 +0000)
# 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

index e422636f819bd9a6abeff9f19134ed6ea36db7fc..bc58ec00d24292914076e6a90da4fb0539990620 100644 (file)
@@ -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;