[mod_cgi] check fd-to-cgi not -1 before close

sanity check
personal/stbuehler/tests-path
Glenn Strauss 2021-11-04 05:03:08 -04:00
parent 8b10f94c07
commit ec50657efe
1 changed files with 1 additions and 0 deletions

View File

@ -415,6 +415,7 @@ static void cgi_pid_del(plugin_data *p, cgi_pid_t *cgi_pid) {
static void cgi_connection_close_fdtocgi(handler_ctx *hctx) {
/*(closes only hctx->fdtocgi)*/
if (-1 == hctx->fdtocgi) return;
struct fdevents * const ev = hctx->ev;
fdevent_fdnode_event_del(ev, hctx->fdntocgi);
/*fdevent_unregister(ev, hctx->fdtocgi);*//*(handled below)*/