This commit is contained in:
Ansa89 2017-04-16 10:49:56 +02:00
parent e565523640
commit 439f676d45
No known key found for this signature in database
GPG Key ID: 19B3DFBF159E800E
2 changed files with 3 additions and 1 deletions

View File

@ -674,6 +674,8 @@ Networking_Core *new_networking_ex(Logger *log, IP ip, uint16_t port_from, uint1
struct sockaddr_storage addr; struct sockaddr_storage addr;
size_t addrsize; size_t addrsize;
memset(&addr, 0, sizeof(struct sockaddr_storage));
if (temp->family == AF_INET) { if (temp->family == AF_INET) {
struct sockaddr_in *addr4 = (struct sockaddr_in *)&addr; struct sockaddr_in *addr4 = (struct sockaddr_in *)&addr;