[stunnel-users] A couple of patches against 4.06

Michal Trojnara Michal.Trojnara at mobi-com.net
Thu Dec 30 10:47:28 CET 2004


Peter Pentchev wrote:
> The second chunk of the patch fixes getnameinfo()
> error reporting - just like with getaddrinfo(),
> getnameinfo() errors should be displayed using
> s_gai_strerror() instead of sockerror().

Manuals seem to claim just the opposite.

Linux Manual:
RETURN VALUE
On success 0 is returned, and node and service names, if requested, are 
filled with NUL-terminated strings, possibly truncated to fit the specified 
buffer lengths.  On error a nonzero value is returned, and  errno is set 
appropriately.

Microsoft:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/getnameinfo_2.asp
Return Values
Success returns zero. Any nonzero return value indicates failure. Use the 
WSAGetLastError function to retrieve error information.

Best regards,
    Mike 




More information about the stunnel-users mailing list