From e14d0da88d4f3fcd0c19c231b59d31189c4d71ad Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Fri, 15 Jul 2016 15:49:23 +0200 Subject: irmd: Fix accessing reg_api struct after destroy The destroy now only frees after all threads stopped using the object. Also fixes a SEGV when trying to allocate a flow to a remote name. --- src/irmd/registry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irmd/registry.h') diff --git a/src/irmd/registry.h b/src/irmd/registry.h index 04ce7cf8..8e9a7af1 100644 --- a/src/irmd/registry.h +++ b/src/irmd/registry.h @@ -59,7 +59,7 @@ struct reg_api { /* the api will block on this */ enum reg_i_state state; - pthread_cond_t wakeup; + pthread_cond_t cond_state; pthread_mutex_t mutex; }; -- cgit v1.2.3