aboutsummaryrefslogtreecommitdiffstats
path: root/lease.c
diff options
context:
space:
mode:
Diffstat (limited to 'lease.c')
-rw-r--r--lease.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lease.c b/lease.c
index c6f13b3..fd51817 100644
--- a/lease.c
+++ b/lease.c
@@ -32,7 +32,7 @@ static struct ipns ipns;
static time_t gexpires = TIME_T_MAX;
static bool synchronized;
-KHASH_MAP_INIT_WGKEY(leaseht, struct wg_dynamic_lease *)
+KHASH_MAP_INIT_SECURE_WGKEY(leaseht, struct wg_dynamic_lease *)
khash_t(leaseht) *leases_ht = NULL;
static time_t get_monotonic_time()
@@ -67,6 +67,9 @@ void leases_init(const char *device_name, int interface_index, char *fname,
synchronized = false;
leases_ht = kh_init(leaseht);
+ if (!leases_ht)
+ fatal("kh_init()");
+
ipp_init(&ipns);
nlh = mnl_nlmsg_put_header(buf);