Alexandre Julliard : server: Don' t access the process after send_client_fd as it may have been killed.

Alexandre Julliard julliard at winehq.org
Tue Feb 19 13:59:02 CST 2008


Module: wine
Branch: master
Commit: a319263230f9fbce698be51af90291ccaee3b441
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a319263230f9fbce698be51af90291ccaee3b441

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Feb 19 16:51:16 2008 +0100

server: Don't access the process after send_client_fd as it may have been killed.

---

 server/fd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/fd.c b/server/fd.c
index c7f20d5..41e404c 100644
--- a/server/fd.c
+++ b/server/fd.c
@@ -1979,11 +1979,11 @@ DECL_HANDLER(get_handle_fd)
         int unix_fd = get_unix_fd( fd );
         if (unix_fd != -1)
         {
-            send_client_fd( current->process, unix_fd, req->handle );
             reply->type = fd->fd_ops->get_fd_type( fd );
             reply->removable = is_fd_removable(fd);
             reply->options = fd->options;
             reply->access = get_handle_access( current->process, req->handle );
+            send_client_fd( current->process, unix_fd, req->handle );
         }
         release_object( fd );
     }




More information about the wine-cvs mailing list