Commit 3c70e958 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

preparser: fix dereference of uninitialized pointer

task->ref could be accessed from the input item preparser before being set.

Fixes #22377
parent 06f17d09
......@@ -128,14 +128,13 @@ static int PreparserOpenInput( void* preparser_, void* req_, void** out )
atomic_init( &task->done, false );
task->preparser = preparser_;
task->req = req;
task->preparse_status = -1;
task->parser = input_item_Parse( req->item, preparser->owner, &cbs,
task );
if( !task->parser )
goto error;
task->req = req;
task->preparse_status = -1;
*out = task;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment