From 29076c87f659bef5f839d20effe2f633a682dd56 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 25 Nov 2017 10:07:21 +0100 Subject: 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 Signed-off-by: Sander Vrijders --- src/irmd/registry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3