Hello,

While trying to use the lastest version (4.1.2) of the free edition of VNC, I 
stumbled on a bug in which 'x0vncserver' does not start, with the message:

  select: Invalid argument (22)

The problem comes from the file 'x0vncserve.cxx' at line 342, where there is:

      int n = select(FD_SETSIZE, &rfds, 0, 0, &tv);

It seems that in a number of case the variable 'tv' is not initialised, which 
leads to random values which make the function fail.
Looking at the code make me thinks that the variable 'tvp' should have been 
used instead, as it seems to have been defined for that purpose (aka: is null 
by default, and points to 'tv' when the structure is filled). The line should 
then be:

      int n = select(FD_SETSIZE, &rfds, 0, 0, tvp);

Anyone can fix the source and (eventually) propose a new package?

Regards,
  Chris.
_______________________________________________
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to