diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/DHT.c | 1 | ||||
-rw-r--r-- | core/Messenger.c | 1 |
2 files changed, 1 insertions, 1 deletions
@@ -1169,6 +1169,7 @@ DHT *new_DHT(Net_Crypto *c) | |||
1169 | networking_registerhandler(c->lossless_udp->net, NET_PACKET_PING_RESPONSE, &handle_ping_response, temp); | 1169 | networking_registerhandler(c->lossless_udp->net, NET_PACKET_PING_RESPONSE, &handle_ping_response, temp); |
1170 | networking_registerhandler(c->lossless_udp->net, NET_PACKET_GET_NODES, &handle_getnodes, temp); | 1170 | networking_registerhandler(c->lossless_udp->net, NET_PACKET_GET_NODES, &handle_getnodes, temp); |
1171 | networking_registerhandler(c->lossless_udp->net, NET_PACKET_SEND_NODES, &handle_sendnodes, temp); | 1171 | networking_registerhandler(c->lossless_udp->net, NET_PACKET_SEND_NODES, &handle_sendnodes, temp); |
1172 | init_cryptopackets(temp); | ||
1172 | cryptopacket_registerhandler(c, CRYPTO_PACKET_NAT_PING, &handle_NATping, temp); | 1173 | cryptopacket_registerhandler(c, CRYPTO_PACKET_NAT_PING, &handle_NATping, temp); |
1173 | return temp; | 1174 | return temp; |
1174 | } | 1175 | } |
diff --git a/core/Messenger.c b/core/Messenger.c index dd24ab09..c5dd8a40 100644 --- a/core/Messenger.c +++ b/core/Messenger.c | |||
@@ -660,7 +660,6 @@ Messenger *initMessenger(void) | |||
660 | friendreq_init(&(m->fr), m->net_crypto); | 660 | friendreq_init(&(m->fr), m->net_crypto); |
661 | LANdiscovery_init(m->dht); | 661 | LANdiscovery_init(m->dht); |
662 | set_nospam(&(m->fr), random_int()); | 662 | set_nospam(&(m->fr), random_int()); |
663 | init_cryptopackets(m->dht); | ||
664 | 663 | ||
665 | return m; | 664 | return m; |
666 | } | 665 | } |