Browse Source

[mod_webdav] fix crash when plugin_ctx cleaned up (fixes #2780)

fixes error trace
  (connections.c.273) missing cleanup in webdav

(thx nickrickard)

x-ref:
  "mod_webdav crash with keep-alive (1.4.44)"
  https://redmine.lighttpd.net/issues/2780
personal/stbuehler/mod-csrf
Glenn Strauss 5 years ago
parent
commit
987a76ff58
  1. 5
      src/mod_webdav.c

5
src/mod_webdav.c

@ -2758,7 +2758,10 @@ PHYSICALPATH_FUNC(mod_webdav_physical_handler) {
static handler_t mod_webdav_connection_reset(server *srv, connection *con, void *p_d) {
plugin_data *p = p_d;
handler_ctx *hctx = con->plugin_ctx[p->id];
if (hctx) free(hctx);
if (hctx) {
free(hctx);
con->plugin_ctx[p->id] = NULL;
}
UNUSED(srv);
return HANDLER_GO_ON;

Loading…
Cancel
Save