[PATCH v3 2/2] Set bound in accept_into_socket instead of changing getsockname
David Curtiss
wine at gitlab.winehq.org
Wed Jun 8 21:50:33 CDT 2022
From: David Curtiss <david.curtiss at ni.com>
---
server/sock.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/sock.c b/server/sock.c
index db63c505770..57555c392b8 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -1832,6 +1832,7 @@ static int accept_into_socket( struct sock *sock, struct sock *acceptsock )
}
acceptsock->state = SOCK_CONNECTED;
+ acceptsock->bound = 1;
acceptsock->pending_events = 0;
acceptsock->reported_events = 0;
acceptsock->proto = sock->proto;
@@ -2716,7 +2717,7 @@ static void sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
}
case IOCTL_AFD_GETSOCKNAME:
- if (!sock->addr_len)
+ if (!sock->bound)
{
set_error( STATUS_INVALID_PARAMETER );
return;
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/192
More information about the wine-devel
mailing list