2
0
Fork 0

[mod_fastcgi] next try to fix use after free

personal/stbuehler/wip
Stefan Bühler 2013-05-28 10:03:34 +02:00
parent bb018b091a
commit 42b49307b9
1 changed files with 2 additions and 3 deletions

View File

@ -660,7 +660,6 @@ static void fastcgi_decode(liFastCGIBackendContext *ctx) {
fcgi_debug("fastcgi end request: %i\n", appStatus);
callbacks->end_request_cb(ctx->currentcon->vr, &ctx->pool->public, &ctx->currentcon->public, appStatus);
if (NULL == ctx->iostream->stream_in.out) return;
}
}
break;
@ -722,7 +721,7 @@ static void fastcgi_decode(liFastCGIBackendContext *ctx) {
}
}
if (0 == in->length || ctx->remainingContent > 0) return;
if (NULL == ctx->iostream || 0 == in->length || ctx->remainingContent > 0) break;
if (ctx->remainingPadding > 0) {
int len = li_chunkqueue_skip(in, ctx->remainingPadding);
@ -730,7 +729,7 @@ static void fastcgi_decode(liFastCGIBackendContext *ctx) {
}
}
if (in->is_closed && !ctx->request_done) {
if (NULL != ctx->iostream && (in->is_closed && !ctx->request_done)) {
if (0 != in->length || !ctx->stdout_closed) {
fastcgi_reset(ctx);
} else {