diff --git a/network/netplay/netplay_init.c b/network/netplay/netplay_init.c index e6f4a4ac8e..cae0ddda37 100644 --- a/network/netplay/netplay_init.c +++ b/network/netplay/netplay_init.c @@ -184,7 +184,11 @@ static bool init_tcp_socket(netplay_t *netplay, void *direct_host, while (tmp_info) { struct sockaddr_storage sad; - int fd = init_tcp_connection( + int fd; + + memset(&sad, 0, sizeof(sad)); + + fd = init_tcp_connection( tmp_info, direct_host || server, (struct sockaddr*)&sad,