]> granicus.if.org Git - php/commitdiff
MFB
authorAntony Dovgal <tony2001@php.net>
Mon, 19 Mar 2007 08:24:17 +0000 (08:24 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 19 Mar 2007 08:24:17 +0000 (08:24 +0000)
ext/session/session.c

index 922835fd33c479878c1a99638129e3664337c11b..1c2ed34e30177a3dbd0906c0d332be5b36e7afc6 100644 (file)
@@ -437,6 +437,7 @@ new_session:
        } else if (PS(invalid_session_id)) { /* address instances where the session read fails due to an invalid id */
                PS(invalid_session_id) = 0;
                efree(PS(id));
+               PS(id) = NULL;
                goto new_session;
        }
 }
@@ -1592,6 +1593,7 @@ static PHP_FUNCTION(session_regenerate_id)
                                RETURN_FALSE;
                        }
                        efree(PS(id));
+                       PS(id) = NULL;
                }
        
                PS(id) = PS(mod)->s_create_sid(&PS(mod_data), NULL TSRMLS_CC);