Alexandre Julliard : server: Fix possible NULL dereference.
Alexandre Julliard
julliard at winehq.org
Tue Dec 18 13:08:15 CST 2007
Module: wine
Branch: master
Commit: c69468ddcc4478e29645372edd370a9ad353cea1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c69468ddcc4478e29645372edd370a9ad353cea1
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Dec 18 19:44:00 2007 +0100
server: Fix possible NULL dereference.
---
server/async.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/server/async.c b/server/async.c
index ff5f7a6..baed133 100644
--- a/server/async.c
+++ b/server/async.c
@@ -213,7 +213,8 @@ struct async *create_async( struct thread *thread, struct async_queue *queue, co
async->data = *data;
async->timeout = NULL;
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 );
grab_object( async );
More information about the wine-cvs
mailing list