Hi all.

I struggle to use VNC server on my FreeBSD 6.0-RELEASE box with xdm
like this:

% /usr/local/bin/Xvnc :59 -query localhost -once  securitytypes=none

but Xvnc fails to start due to following error message: 

> Fatal server error:
> XDMCP fatal error: Session declined No valid address

Quickly searching, I could find that this mysterious error is
repeatedly reported in these years but there are no definite solution.

With a few hours survey, I found XFree 4.3.0 source tree (which is
FreeBSD port version using) has an uninitialized variable bug in its
code for the system which has getifaddrs(3). Applying following patch
seemed to fix this problem.

--- xc/programs/Xserver/os/access.c.orig        Fri Jan 27 16:23:17 2006
+++ xc/programs/Xserver/os/access.c     Fri Jan 27 16:22:32 2006
@@ -730,6 +730,7 @@
        if (ifr->ifa_addr.sa_family == AF_DECnet) 
            continue;
 #endif /* DNETCONN */
+       len = sizeof(*(ifr->ifa_addr));
        family = ConvertAddr(ifr->ifa_addr, &len, (pointer *)&addr);
        if (family == -1 || family == FamilyLocal) 
            continue;

I also found this bug is already fixed in X.org 6.9.0 source tree, but
I don't know it works fine in conjunction with current version VNC 4.1.1.

Thanks to everyone who works for this excellent software.

--
PERSONAL-MEDIA Corp.
Akihiro KAYAMA
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to