diff --git a/source/net_udp.c b/source/net_udp.c index e3155eb..e141cc6 100644 --- a/source/net_udp.c +++ b/source/net_udp.c @@ -366,6 +366,8 @@ UDP_OpenSocket (int port) #endif int i; + memset (&address, 0, sizeof(address)); + if ((newsocket = socket (PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) Sys_Error ("UDP_OpenSocket: socket:%s", strerror (errno)); if (ioctl (newsocket, FIONBIO, &_true) == -1)