summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2016-08-23 15:57:01 +0200
committerdimitri staessens <[email protected]>2016-08-23 15:57:01 +0200
commitb1eba5880803f8981d80ff452a2121407360e3d4 (patch)
tree964338b93fd226198ef12a4cbd796e57db7187d0 /src/irmd/main.c
parent7c19363bc062efd52f54cc76a06685f9a9a757b5 (diff)
downloadouroboros-b1eba5880803f8981d80ff452a2121407360e3d4.tar.gz
ouroboros-b1eba5880803f8981d80ff452a2121407360e3d4.zip
irmd: Fix wrong lookup
ap_table had no function to look for entries by apn.
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c3
1 files changed, 2 insertions, 1 deletions
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);