summaryrefslogtreecommitdiff
path: root/toxcore/onion_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r--toxcore/onion_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c
index 35fb4423..ee902d99 100644
--- a/toxcore/onion_client.c
+++ b/toxcore/onion_client.c
@@ -1007,7 +1007,7 @@ Onion_Client *new_onion_client(Net_Crypto *c)
1007 networking_registerhandler(onion_c->net, NET_PACKET_ANNOUNCE_RESPONSE, &handle_announce_response, onion_c); 1007 networking_registerhandler(onion_c->net, NET_PACKET_ANNOUNCE_RESPONSE, &handle_announce_response, onion_c);
1008 networking_registerhandler(onion_c->net, NET_PACKET_ONION_DATA_RESPONSE, &handle_data_response, onion_c); 1008 networking_registerhandler(onion_c->net, NET_PACKET_ONION_DATA_RESPONSE, &handle_data_response, onion_c);
1009 oniondata_registerhandler(onion_c, FAKEID_DATA_ID, &handle_fakeid_announce, onion_c); 1009 oniondata_registerhandler(onion_c, FAKEID_DATA_ID, &handle_fakeid_announce, onion_c);
1010 cryptopacket_registerhandler(onion_c->c, FAKEID_DATA_ID, &handle_dht_fakeid, onion_c); 1010 cryptopacket_registerhandler(onion_c->dht, FAKEID_DATA_ID, &handle_dht_fakeid, onion_c);
1011 1011
1012 return onion_c; 1012 return onion_c;
1013} 1013}
@@ -1021,7 +1021,7 @@ void kill_onion_client(Onion_Client *onion_c)
1021 networking_registerhandler(onion_c->net, NET_PACKET_ANNOUNCE_RESPONSE, NULL, NULL); 1021 networking_registerhandler(onion_c->net, NET_PACKET_ANNOUNCE_RESPONSE, NULL, NULL);
1022 networking_registerhandler(onion_c->net, NET_PACKET_ONION_DATA_RESPONSE, NULL, NULL); 1022 networking_registerhandler(onion_c->net, NET_PACKET_ONION_DATA_RESPONSE, NULL, NULL);
1023 oniondata_registerhandler(onion_c, FAKEID_DATA_ID, NULL, NULL); 1023 oniondata_registerhandler(onion_c, FAKEID_DATA_ID, NULL, NULL);
1024 cryptopacket_registerhandler(onion_c->c, FAKEID_DATA_ID, NULL, NULL); 1024 cryptopacket_registerhandler(onion_c->dht, FAKEID_DATA_ID, NULL, NULL);
1025 memset(onion_c, 0, sizeof(Onion_Client)); 1025 memset(onion_c, 0, sizeof(Onion_Client));
1026 free(onion_c); 1026 free(onion_c);
1027} 1027}