Re: g_io_channel_unix_new has bug +win32

bhochstetler houston rr com writes:
The latest release of glib (2.2.2) has a bug in the
g_io_channel_unix_new method. The call to getsockopt I believe
should include the optval and optlen args; currently they are

Yes, already fixed in CVS. Your diagnose is entirely correct. (A
workaround is to use g_io_channel_win32_new_socket().)

2003-06-25  Tor Lillqvist  <tml iki fi>

        * glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
        &optlen to getsockopt() instead of NULL. Don't remember why I
        thought that NULL could be used (as we don't actually use the
        returned value for anything), the Platform SDK documentation
        doesn't imply so.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]