llarp_rc_new to initialize properties correctly

pull/5/head
Ryan Tharp 6 years ago
parent 016da4b7aa
commit 3a21ca604f

@ -47,6 +47,10 @@ struct llarp_rc
void
llarp_rc_free(struct llarp_rc *rc);
bool
llarp_rc_new(struct llarp_rc *rc);
bool
llarp_rc_verify_sig(struct llarp_crypto *crypto, struct llarp_rc *rc);

@ -6,6 +6,16 @@
#include "logger.hpp"
extern "C" {
bool
llarp_rc_new(struct llarp_rc *rc)
{
rc->addrs = llarp_ai_list_new();
rc->exits = llarp_xi_list_new();
rc->last_updated = 0;
return true;
}
void
llarp_rc_free(struct llarp_rc *rc)
{

Loading…
Cancel
Save