--- uquake/net_udp.c.orig Wed Jan 19 03:01:05 2000 +++ uquake/net_udp.c Mon Apr 2 14:19:31 2001 @@ -94,6 +94,13 @@ // determine my name & address gethostname(buff, MAXHOSTNAMELEN); local = gethostbyname(buff); + + if (!local) + { + printf("Cannot get address for %s: UDP disabled", + buff); + return -1; + } myAddr = *(int *)local->h_addr_list[0]; // if the quake hostname isn't set, set it to the machine name