Skip to content

Commit 03a3291

Browse files
committed
MFB
1 parent df2c656 commit 03a3291

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/session/session.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ static void php_session_initialize(TSRMLS_D)
437437
} else if (PS(invalid_session_id)) { /* address instances where the session read fails due to an invalid id */
438438
PS(invalid_session_id) = 0;
439439
efree(PS(id));
440+
PS(id) = NULL;
440441
goto new_session;
441442
}
442443
}
@@ -1592,6 +1593,7 @@ static PHP_FUNCTION(session_regenerate_id)
15921593
RETURN_FALSE;
15931594
}
15941595
efree(PS(id));
1596+
PS(id) = NULL;
15951597
}
15961598

15971599
PS(id) = PS(mod)->s_create_sid(&PS(mod_data), NULL TSRMLS_CC);

0 commit comments

Comments
 (0)