Skip to content

Commit

Permalink
Fix crash with external session save handlers
Browse files Browse the repository at this point in the history
# 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....
  • Loading branch information
Yasuo Ohgaki committed Dec 26, 2001
1 parent bd1a88f commit fe81186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/session/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fe81186

Please sign in to comment.