mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:10:36 +00:00
server: Don't access the process after send_client_fd as it may have been killed.
This commit is contained in:
parent
41fbacefa1
commit
a319263230
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue