summaryrefslogtreecommitdiff
path: root/src/irmd/registry.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2017-11-25 10:07:21 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2017-11-27 11:07:34 +0100
commit29076c87f659bef5f839d20effe2f633a682dd56 (patch)
tree319b0216a3b9e408dc027f9e9e6487e05c0f47b3 /src/irmd/registry.c
parent4adbe0c39415ac0848c4a5e14733369c3bac3a0f (diff)
downloadouroboros-29076c87f659bef5f839d20effe2f633a682dd56.tar.gz
ouroboros-29076c87f659bef5f839d20effe2f633a682dd56.zip
irmd: Fix false alarm when registering before bind
When registering a name in a dif before binding a program to it without auto, the IRMd would erroneously log that the binding failed. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/irmd/registry.c')
-rw-r--r--src/irmd/registry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/registry.c b/src/irmd/registry.c
index f863af6a..21399118 100644
--- a/src/irmd/registry.c
+++ b/src/irmd/registry.c
@@ -241,7 +241,7 @@ int reg_entry_add_apn(struct reg_entry * e,
if (!(a->flags & BIND_AP_AUTO)) {
log_dbg("AP %s cannot be auto-instantiated.", a->apn);
- return -EINVAL;
+ return 0;
}
n = malloc(sizeof(*n));