NET_Socket unix using getaddrinfo's error code in case.

This commit is contained in:
David Carlier 2023-10-28 15:34:50 +01:00
parent 994a753bd0
commit 478d16e786

View file

@ -850,6 +850,8 @@ NET_Socket(char *net_interface, int port, netsrc_t type, int family)
if ((Error = getaddrinfo(Host, Service, &hints, &res))) if ((Error = getaddrinfo(Host, Service, &hints, &res)))
{ {
Com_Printf("ERROR: NET_Socket: getaddrinfo:%s\n",
gai_strerror(Error));
return 0; return 0;
} }