[ldns-users] Improper socket closing on Windows
W.C.A. Wijngaards
wouter at NLnetLabs.nl
Tue Sep 14 11:12:59 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Zbynek,
On 09/07/2010 03:34 PM, Zbynek Michl wrote:
> ldns library does not close sockets on Windows. In sources is almost
> everywhere used close() function, but it works well just on UNIX
> systems. On Windows is necessary to use closesocket() instead of close()
> function. So I suggest to modify ldns source files like this:
>
> #ifndef USE_WINSOCK
> close(sockfd);
> #else
> closesocket(sockfd);
> #endif
Patch applied to svn trunk r3342, it cross-compiled properly to win32.
Best regards,
Wouter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkyPWLsACgkQkDLqNwOhpPgsTACgmrrTQC5QYusGhKtLhQbtls3X
D9QAnAgetxxW4V4XxVe3RDTU7QsuOBAO
=RxEs
-----END PGP SIGNATURE-----
More information about the ldns-users
mailing list