Commit c69468dd authored by Alexandre Julliard's avatar Alexandre Julliard

server: Fix possible NULL dereference.

parent 3afbee52
...@@ -213,7 +213,8 @@ struct async *create_async( struct thread *thread, struct async_queue *queue, co ...@@ -213,7 +213,8 @@ struct async *create_async( struct thread *thread, struct async_queue *queue, co
async->data = *data; async->data = *data;
async->timeout = NULL; async->timeout = NULL;
async->queue = (struct async_queue *)grab_object( queue ); async->queue = (struct async_queue *)grab_object( queue );
fd_assign_completion( queue->fd, &async->completion, &async->comp_key ); async->completion = NULL;
if (queue->fd) fd_assign_completion( queue->fd, &async->completion, &async->comp_key );
list_add_tail( &queue->queue, &async->queue_entry ); list_add_tail( &queue->queue, &async->queue_entry );
grab_object( async ); grab_object( async );
......
Markdown is supported
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