http://bugs.winehq.com/show_bug.cgi?id=1541
Summary: WS2_32 version of gethostbyname with NULL argument doesn't follow specification Product: Wine Version: 20030508 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-net AssignedTo: wine-bugs@winehq.com ReportedBy: rzoli@yahoo.com
According to Microsoft definition, a call to gethostbyname with a NULL argument should produce a well-defined behaviour, namely return information about the local host. A look at dlls/winsock/socket.c shows that the current implementation does not do this. I have encountered at least one program that tries to call gethostbyname with a NULL argument and by doing so successfully crashes itself and/or wine.