Fix mod_rewrite memleak/endless loop detection (#1775, thx phy - again!)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2306 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
3decb2647b
commit
c8bce9b4a5
1
NEWS
1
NEWS
|
@ -63,6 +63,7 @@ NEWS
|
|||
* workaround ldap connection leak if a ldap connection failed (restarting ldap)
|
||||
* fix auth.backend.ldap.bind-dn/pw problems (only read from global context for temporary ldap reconnects, thx ruskie)
|
||||
* fix memleak in request header parsing (#1774, thx qhy)
|
||||
* fix mod_rewrite memleak/endless loop detection (#1775, thx phy - again!)
|
||||
|
||||
- 1.4.19 - 2008-03-10
|
||||
|
||||
|
|
|
@ -425,9 +425,12 @@ URIHANDLER_FUNC(mod_rewrite_uri_handler) {
|
|||
|
||||
pcre_free(list);
|
||||
|
||||
hctx = handler_ctx_init();
|
||||
|
||||
con->plugin_ctx[p->id] = hctx;
|
||||
if (con->plugin_ctx[p->id] == NULL) {
|
||||
hctx = handler_ctx_init();
|
||||
con->plugin_ctx[p->id] = hctx;
|
||||
} else {
|
||||
hctx = con->plugin_ctx[p->id];
|
||||
}
|
||||
|
||||
if (rule->once) hctx->state = REWRITE_STATE_FINISHED;
|
||||
|
||||
|
|
Loading…
Reference in New Issue