From ac786a71dfdbd1a23be69ba4f2566b4f530da322 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 14 Nov 2017 19:25:53 +0100 Subject: irmd: Don't access entry after unlock When bootstrapping an IPCP entry->api variable was accessed after the registry was unlocked for printing and info message. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irmd/main.c b/src/irmd/main.c index 80417806..9904bcce 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -511,7 +511,7 @@ static int bootstrap_ipcp(pid_t api, pthread_rwlock_unlock(&irmd.reg_lock); log_info("Bootstrapped IPCP %d in DIF %s.", - entry->api, conf->dif_info->dif_name); + api, conf->dif_info->dif_name); return 0; } -- cgit v1.2.3