From 802088cad493c41bf6c0089e9e643edc0cd997bc Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Fri, 31 Mar 2017 14:09:52 +0200 Subject: irmd: Fix assignment bug --- src/irmd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/irmd') diff --git a/src/irmd/main.c b/src/irmd/main.c index c7adf386..c666cfd3 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1054,8 +1054,6 @@ static struct irm_flow * flow_accept(pid_t api, return NULL; } - *cube = re->qos; - api_n = f->n_api; api_n1 = f->n_1_api; port_id = f->port_id; @@ -1078,6 +1076,8 @@ static struct irm_flow * flow_accept(pid_t api, re = e->re; + *cube = re->qos; + pthread_mutex_unlock(&e->state_lock); if (reg_entry_get_state(re) != REG_NAME_FLOW_ARRIVED) { -- cgit v1.2.3