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
6361a20c
Commit
6361a20c
authored
Jan 01, 2024
by
Gabriel Brand
Committed by
Alexandre Julliard
Jan 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Return failure in bind if the address is not found.
parent
b7f06a4a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
sock.c
dlls/ws2_32/tests/sock.c
+0
-2
sock.c
server/sock.c
+1
-1
No files found.
dlls/ws2_32/tests/sock.c
View file @
6361a20c
...
...
@@ -12528,9 +12528,7 @@ static void test_bind(void)
WSASetLastError
(
0xdeadbeef
);
ret
=
bind
(
s
,
(
const
struct
sockaddr
*
)
&
invalid_addr
,
sizeof
(
invalid_addr
));
todo_wine
ok
(
ret
==
-
1
,
"expected failure
\n
"
);
todo_wine
ok
(
WSAGetLastError
()
==
WSAEADDRNOTAVAIL
,
"got error %u
\n
"
,
WSAGetLastError
());
WSASetLastError
(
0xdeadbeef
);
...
...
server/sock.c
View file @
6361a20c
...
...
@@ -2231,7 +2231,7 @@ static int bind_to_interface( struct sock *sock, const struct sockaddr_in *addr
in_addr_t
bind_addr
=
addr
->
sin_addr
.
s_addr
;
struct
ifaddrs
*
ifaddrs
,
*
ifaddr
;
int
fd
=
get_unix_fd
(
sock
->
fd
);
int
err
=
0
;
int
err
=
-
1
;
if
(
bind_addr
==
htonl
(
INADDR_ANY
)
||
bind_addr
==
htonl
(
INADDR_LOOPBACK
))
return
0
;
...
...
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