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
svn/tags/lighttpd-1.4.20
Stefan Bühler 15 years ago
parent 3decb2647b
commit c8bce9b4a5

@ -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…
Cancel
Save