From 5c9328203b277fc36550ba06720dd13e5940121b Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 10 Aug 2025 12:08:23 +0200 Subject: ipcpd: Remove old IPCP_CONN_WAIT_DIR build option The IPCP_CONN_WAIT_DIR build option is not needed anymore with the recent update to the DHT. Also cleans up some logging in the IPCP. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/unicast/dir/dht.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ipcpd/unicast/dir') diff --git a/src/ipcpd/unicast/dir/dht.c b/src/ipcpd/unicast/dir/dht.c index 4a243059..a56c8af2 100644 --- a/src/ipcpd/unicast/dir/dht.c +++ b/src/ipcpd/unicast/dir/dht.c @@ -3693,6 +3693,8 @@ static void dht_kv_replicate(void) list_head_init(&repl); list_head_init(&rebl); + pthread_cleanup_push(free, key); + while (dht_kv_next_values(key, &repl, &rebl) == 0) { dht_kv_replicate_values(key, &repl, &rebl); if (!list_is_empty(&repl)) { @@ -3708,7 +3710,7 @@ static void dht_kv_replicate(void) } } - free(key); + pthread_cleanup_pop(true); } static void dht_kv_refresh_contacts(void) -- cgit v1.2.3