diff options
author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2017-11-14 19:25:53 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2017-11-14 19:39:53 +0100 |
commit | ac786a71dfdbd1a23be69ba4f2566b4f530da322 (patch) | |
tree | c90042980bcf9ed64e820df5d93522616102e3b2 /src | |
parent | 5d3904c4d0593ddb5fcffad320150622ad67f27e (diff) | |
download | ouroboros-ac786a71dfdbd1a23be69ba4f2566b4f530da322.tar.gz ouroboros-ac786a71dfdbd1a23be69ba4f2566b4f530da322.zip |
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 <dimitri.staessens@ugent.be>
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src')
-rw-r--r-- | src/irmd/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |