summaryrefslogtreecommitdiff
path: root/src/irmd
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-07-12 18:21:36 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-07-12 18:21:36 +0200
commit0027209cccbd5195b6d4ffe88adc8ba1ac3f3fe2 (patch)
tree8f974b624b06a72badb075013db343c7e227eb2d /src/irmd
parent1a35c29ba743424df0cb27408cf08f7022a1c5f5 (diff)
parentd96bac100c5fe181383e947c1e62241cbabce6ac (diff)
downloadouroboros-0027209cccbd5195b6d4ffe88adc8ba1ac3f3fe2.tar.gz
ouroboros-0027209cccbd5195b6d4ffe88adc8ba1ac3f3fe2.zip
Merged in sandervrijders/ouroboros/be (pull request #170)
Be
Diffstat (limited to 'src/irmd')
-rw-r--r--src/irmd/main.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index 30ecbc59..17e51c05 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -422,8 +422,6 @@ static int bootstrap_ipcp(pid_t api,
static int enroll_ipcp(pid_t api,
char * dif_name)
{
- char ** n_1_difs = NULL;
- ssize_t n_1_difs_size = 0;
struct ipcp_entry * entry = NULL;
pthread_rwlock_rdlock(&instance->state_lock);
@@ -451,17 +449,7 @@ static int enroll_ipcp(pid_t api,
return -1;
}
- n_1_difs_size = nsm_resolve(dif_name, n_1_difs);
- if (n_1_difs_size < 1) {
- free(entry->dif_name);
- entry->dif_name = NULL;
- pthread_rwlock_unlock(&instance->reg_lock);
- pthread_rwlock_unlock(&instance->state_lock);
- LOG_ERR("Could not find N-1 DIFs.");
- return -1;
- }
-
- if (ipcp_enroll(api, dif_name, n_1_difs[0])) {
+ if (ipcp_enroll(api, dif_name)) {
free(entry->dif_name);
entry->dif_name = NULL;
pthread_rwlock_unlock(&instance->reg_lock);