summaryrefslogtreecommitdiff
path: root/toxcore/onion_announce.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/onion_announce.c')
-rw-r--r--toxcore/onion_announce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/onion_announce.c b/toxcore/onion_announce.c
index 2ca53896..da40584d 100644
--- a/toxcore/onion_announce.c
+++ b/toxcore/onion_announce.c
@@ -325,7 +325,7 @@ Onion_Announce *new_onion_announce(DHT *dht)
325 return NULL; 325 return NULL;
326 326
327 onion_a->dht = dht; 327 onion_a->dht = dht;
328 onion_a->net = dht->c->lossless_udp->net; 328 onion_a->net = dht->net;
329 new_symmetric_key(onion_a->secret_bytes); 329 new_symmetric_key(onion_a->secret_bytes);
330 330
331 networking_registerhandler(onion_a->net, NET_PACKET_ANNOUNCE_REQUEST, &handle_announce_request, onion_a); 331 networking_registerhandler(onion_a->net, NET_PACKET_ANNOUNCE_REQUEST, &handle_announce_request, onion_a);