summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2016-10-26 15:03:00 +0000
committerdimitri staessens <[email protected]>2016-10-26 15:03:00 +0000
commitcd6db513e66ad0bccb06b3b36e13824ad03c18ee (patch)
tree5f77626c3ad3b411c1741050f8b24ae498c7de93 /src/irmd/main.c
parentf60e18adc78afaf4d07a10e6fe8aec3767e0ca11 (diff)
parentaa11e240def809e92d42dcfd0ac934606967583b (diff)
downloadouroboros-cd6db513e66ad0bccb06b3b36e13824ad03c18ee.tar.gz
ouroboros-cd6db513e66ad0bccb06b3b36e13824ad03c18ee.zip
Merged in sandervrijders/ouroboros/be-bind-ipcp (pull request #284)
tools: irm: Bind IPCP name to IPCP-I
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index 740472b9..1ac989de 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -590,14 +590,14 @@ static int bind_api(pid_t api,
e = api_table_get(&irmd->api_table, api);
if (e == NULL) {
LOG_ERR("AP-I %d does not exist.", api);
- pthread_rwlock_wrlock(&irmd->reg_lock);
+ pthread_rwlock_unlock(&irmd->reg_lock);
pthread_rwlock_unlock(&irmd->state_lock);
return -1;
}
name_dup = strdup(name);
if (name_dup == NULL) {
- pthread_rwlock_wrlock(&irmd->reg_lock);
+ pthread_rwlock_unlock(&irmd->reg_lock);
pthread_rwlock_unlock(&irmd->state_lock);
return -ENOMEM;
}