[fastcgi] assert pointer is not NULL before dereference before NULL check in a loop

personal/stbuehler/wip
Stefan Bühler 9 years ago
parent 118844573c
commit 582a8585ff

@ -594,8 +594,12 @@ static void fastcgi_stream_out(liStream *stream, liStreamEvent event) {
}
static void fastcgi_decode(liFastCGIBackendContext *ctx) {
liChunkQueue *in = ctx->iostream->stream_in.out;
liWorker *wrk = li_worker_from_iostream(ctx->iostream);
liChunkQueue *in;
liWorker *wrk;
LI_FORCE_ASSERT(NULL != ctx->iostream);
in = ctx->iostream->stream_in.out;
wrk = li_worker_from_iostream(ctx->iostream);
while (NULL != ctx->iostream && 0 < in->length) {
gboolean newdata = FALSE;

Loading…
Cancel
Save