We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e86d9bc commit 45fbc34Copy full SHA for 45fbc34
src/os/dev-net.c
@@ -71,6 +71,7 @@ extern HWND Event_Handle; // For WSAAsync API
71
static void Set_Addr(SOCKAI *sa, long ip, int port)
72
{
73
// Set the IP address and port number in a socket_addr struct.
74
+ memset(sa, 0, sizeof(*sa));
75
sa->sin_family = AF_INET;
76
sa->sin_addr.s_addr = ip; //htonl(ip); NOTE: REBOL stays in network byte order
77
sa->sin_port = htons((unsigned short)port);
0 commit comments