From b1eba5880803f8981d80ff452a2121407360e3d4 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Tue, 23 Aug 2016 15:57:01 +0200 Subject: irmd: Fix wrong lookup ap_table had no function to look for entries by apn. --- src/irmd/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/irmd/main.c') diff --git a/src/irmd/main.c b/src/irmd/main.c index 5366b535..8ac645df 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1364,7 +1364,8 @@ static struct irm_flow * flow_req_arr(pid_t api, pthread_mutex_lock(&re->state_lock); re->state = REG_NAME_AUTO_EXEC; - a = apn_table_get(&irmd->apn_table, reg_entry_get_apn(re)); + a = apn_table_get_by_apn(&irmd->apn_table, + reg_entry_get_apn(re)); pthread_mutex_unlock(&re->state_lock); if (a == NULL || (c_api->pid = auto_execute(a->argv)) < 0) { pthread_mutex_lock(&re->state_lock); -- cgit v1.2.3