From dd147ed65a70fd6fc125ddc0526e42d364434b99 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Tue, 15 Jun 2021 23:13:29 -0500 Subject: [PATCH] server: Return the socket address from IOCTL_AFD_BIND. Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- server/sock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/sock.c b/server/sock.c index e5acf585dcc..8cd3475d7b2 100644 --- a/server/sock.c +++ b/server/sock.c @@ -2449,6 +2449,8 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async ) sock->addr_len = sockaddr_from_unix( &bind_addr, &sock->addr.addr, sizeof(sock->addr) ); } + if (get_reply_max_size() >= sock->addr_len) + set_reply_data( &sock->addr, sock->addr_len ); return 1; }