summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-08-23 22:41:13 +0200
committerSander Vrijders <[email protected]>2016-08-23 22:41:13 +0200
commitd8744f9b77a98183ca4ecc6e0be5ce9a6e92ede0 (patch)
tree964338b93fd226198ef12a4cbd796e57db7187d0 /src/irmd/main.c
parent7c19363bc062efd52f54cc76a06685f9a9a757b5 (diff)
parentb1eba5880803f8981d80ff452a2121407360e3d4 (diff)
downloadouroboros-d8744f9b77a98183ca4ecc6e0be5ce9a6e92ede0.tar.gz
ouroboros-d8744f9b77a98183ca4ecc6e0be5ce9a6e92ede0.zip
Merged in dstaesse/ouroboros/be-bugfixing (pull request #220)
irmd: Fix wrong lookup
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);