mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
This commit is contained in:
parent
e565523640
commit
439f676d45
|
@ -674,6 +674,8 @@ Networking_Core *new_networking_ex(Logger *log, IP ip, uint16_t port_from, uint1
|
|||
struct sockaddr_storage addr;
|
||||
size_t addrsize;
|
||||
|
||||
memset(&addr, 0, sizeof(struct sockaddr_storage));
|
||||
|
||||
if (temp->family == AF_INET) {
|
||||
struct sockaddr_in *addr4 = (struct sockaddr_in *)&addr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user