summaryrefslogtreecommitdiff
path: root/toxcore/LAN_discovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/LAN_discovery.c')
-rw-r--r--toxcore/LAN_discovery.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c
index f87f1348..bc020d87 100644
--- a/toxcore/LAN_discovery.c
+++ b/toxcore/LAN_discovery.c
@@ -152,6 +152,11 @@ static void fetch_broadcast_info(uint16_t port)
152 IP_Port *ip_port = &broadcast_ip_port[broadcast_count]; 152 IP_Port *ip_port = &broadcast_ip_port[broadcast_count];
153 ip_port->ip.family = AF_INET; 153 ip_port->ip.family = AF_INET;
154 ip_port->ip.ip4.in_addr = sock4->sin_addr; 154 ip_port->ip.ip4.in_addr = sock4->sin_addr;
155
156 if (ip_port->ip.ip4.uint32 == 0) {
157 continue;
158 }
159
155 ip_port->port = port; 160 ip_port->port = port;
156 broadcast_count++; 161 broadcast_count++;
157 } 162 }