From 54b1ba99e15660e2e12dbc564f7e7428b5440446 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Fri, 12 Aug 2016 13:11:07 +0200 Subject: ipcpd: Fix bootstrap with api_bind Calling api_bind during bootstrap caused the IRMd to lock up. api_bind is now called after the normal completes bootstrapping. --- src/ipcpd/ipcp-data.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ipcpd/ipcp-data.c') diff --git a/src/ipcpd/ipcp-data.c b/src/ipcpd/ipcp-data.c index a2fef08c..593baeba 100644 --- a/src/ipcpd/ipcp-data.c +++ b/src/ipcpd/ipcp-data.c @@ -111,6 +111,7 @@ struct ipcp_data * ipcp_data_init(struct ipcp_data * dst, return NULL; dst->type = ipcp_type; + dst->dif_name = NULL; /* init the lists */ INIT_LIST_HEAD(&dst->registry); @@ -157,6 +158,9 @@ void ipcp_data_destroy(struct ipcp_data * data) clear_registry(data); clear_directory(data); + if (data->dif_name != NULL) + free(data->dif_name); + pthread_mutex_unlock(&data->dir_lock); pthread_mutex_unlock(&data->reg_lock); -- cgit v1.2.3