Fix FastCGI error handling

This commit is contained in:
2023-07-13 23:09:49 +02:00
parent 642286a838
commit 0f526d7b95
4 changed files with 13 additions and 5 deletions

View File

@ -165,7 +165,7 @@ static void fastcgi_error_cb(chunk_ctx_t *ctx) {
// FIXME segfault on error_cb
warning("Closing connection due to FastCGI error");
if(ctx->client->fcgi_ctx) {
fastcgi_close(ctx->client->fcgi_ctx);
fastcgi_close_error(ctx->client->fcgi_ctx);
ctx->client->fcgi_ctx = NULL;
}