diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-12 13:11:07 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-12 14:57:24 +0200 |
commit | 54b1ba99e15660e2e12dbc564f7e7428b5440446 (patch) | |
tree | 0a5fead93b09bf15eae5851e4b022f05df3fdae5 /src/ipcpd/ipcp-data.c | |
parent | 44cc6aaa41d88dc978a087178fd74a1c2dba70fd (diff) | |
download | ouroboros-54b1ba99e15660e2e12dbc564f7e7428b5440446.tar.gz ouroboros-54b1ba99e15660e2e12dbc564f7e7428b5440446.zip |
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.
Diffstat (limited to 'src/ipcpd/ipcp-data.c')
-rw-r--r-- | src/ipcpd/ipcp-data.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |