summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/Messenger.c1
-rw-r--r--toxcore/net_crypto.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index 78c83519..4f84ba6b 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -1553,7 +1553,6 @@ Messenger *new_messenger(uint8_t ipv6enabled)
1553 return NULL; 1553 return NULL;
1554 } 1554 }
1555 1555
1556 new_keys(m->net_crypto);
1557 m_set_statusmessage(m, (uint8_t *)"Online", sizeof("Online")); 1556 m_set_statusmessage(m, (uint8_t *)"Online", sizeof("Online"));
1558 1557
1559 friendreq_init(&(m->fr), m->net_crypto); 1558 friendreq_init(&(m->fr), m->net_crypto);
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c
index a37d99da..aec2a9e7 100644
--- a/toxcore/net_crypto.c
+++ b/toxcore/net_crypto.c
@@ -818,6 +818,7 @@ Net_Crypto *new_net_crypto(Networking_Core *net)
818 return NULL; 818 return NULL;
819 } 819 }
820 820
821 new_keys(temp);
821 return temp; 822 return temp;
822} 823}
823 824