Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
920f654f
Commit
920f654f
authored
May 10, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
May 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Avoid calling get_unix_fd() in IOCTL_AFD_CREATE.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
efbb3091
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
sock.c
server/sock.c
+1
-2
No files found.
server/sock.c
View file @
920f654f
...
...
@@ -1087,7 +1087,6 @@ static int init_socket( struct sock *sock, int family, int type, int protocol, u
return
-
1
;
}
sock_reselect
(
sock
);
clear_error
();
return
0
;
}
...
...
@@ -1354,7 +1353,7 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
assert
(
sock
->
obj
.
ops
==
&
sock_ops
);
if
(
get_unix_fd
(
fd
)
==
-
1
&&
code
!=
IOCTL_AFD_CREATE
)
return
0
;
if
(
code
!=
IOCTL_AFD_CREATE
&&
get_unix_fd
(
fd
)
<
0
)
return
0
;
switch
(
code
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment