summaryrefslogtreecommitdiff
path: root/toxcore/network.c
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2017-04-16 05:56:37 -0400
committerMaxim Biro <nurupo.contributions@gmail.com>2017-04-22 15:31:25 -0400
commit5ed37e543825c023163adba95b99ea81d3337196 (patch)
tree2a16a1738642db7e38e1b91a48ed404da9939285 /toxcore/network.c
parentf6285d7a60a75773f91754d5f254192139b5ceb8 (diff)
Revert "Fix TokTok/c-toxcore#535"
This reverts commit 439f676d45d75f59f47a000a6adca8e9fe6a6e4e.
Diffstat (limited to 'toxcore/network.c')
-rw-r--r--toxcore/network.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/toxcore/network.c b/toxcore/network.c
index a68e91f4..f74363e6 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -674,8 +674,6 @@ Networking_Core *new_networking_ex(Logger *log, IP ip, uint16_t port_from, uint1
674 struct sockaddr_storage addr; 674 struct sockaddr_storage addr;
675 size_t addrsize; 675 size_t addrsize;
676 676
677 memset(&addr, 0, sizeof(struct sockaddr_storage));
678
679 if (temp->family == AF_INET) { 677 if (temp->family == AF_INET) {
680 struct sockaddr_in *addr4 = (struct sockaddr_in *)&addr; 678 struct sockaddr_in *addr4 = (struct sockaddr_in *)&addr;
681 679