It makes more sense for new_keys() to be in new_net_crypto()

This commit is contained in:
irungentoo 2013-12-26 09:47:35 -05:00
parent 042d759847
commit 977aab7f2f
2 changed files with 1 additions and 1 deletions

View File

@ -1553,7 +1553,6 @@ Messenger *new_messenger(uint8_t ipv6enabled)
return NULL; return NULL;
} }
new_keys(m->net_crypto);
m_set_statusmessage(m, (uint8_t *)"Online", sizeof("Online")); m_set_statusmessage(m, (uint8_t *)"Online", sizeof("Online"));
friendreq_init(&(m->fr), m->net_crypto); friendreq_init(&(m->fr), m->net_crypto);

View File

@ -818,6 +818,7 @@ Net_Crypto *new_net_crypto(Networking_Core *net)
return NULL; return NULL;
} }
new_keys(temp);
return temp; return temp;
} }