From: David Curtiss david.curtiss@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;