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

This commit is contained in:
Alexandre Julliard 2008-02-19 16:51:16 +01:00
parent 41fbacefa1
commit a319263230

View File

@ -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 );
}