summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/main.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2017-01-04 18:24:39 +0100
committerSander Vrijders <sander.vrijders@intec.ugent.be>2017-01-04 18:24:39 +0100
commite0db38c8fcd7495d990698e86212a70b8440cad0 (patch)
treeb9c1650d17e761a95cb81a4872aade40f3a9614d /src/ipcpd/normal/main.c
parentc9b54bcd27fe87559f82b9a1cebba9b38abf5ebc (diff)
parentce64aa294574cc94355f5d744e8d0342a0f19769 (diff)
downloadouroboros-e0db38c8fcd7495d990698e86212a70b8440cad0.tar.gz
ouroboros-e0db38c8fcd7495d990698e86212a70b8440cad0.zip
Merged in dstaesse/ouroboros/be-fixes (pull request #337)
Be fixes
Diffstat (limited to 'src/ipcpd/normal/main.c')
-rw-r--r--src/ipcpd/normal/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipcpd/normal/main.c b/src/ipcpd/normal/main.c
index 8d319894..8db754aa 100644
--- a/src/ipcpd/normal/main.c
+++ b/src/ipcpd/normal/main.c
@@ -187,6 +187,7 @@ static int normal_ipcp_enroll(char * dst_name)
LOG_WARN("Failed to finalize flow manager.");
if (ribmgr_fini())
LOG_WARN("Failed to finalize RIB manager.");
+ ipcp_set_state(IPCP_INIT);
pthread_rwlock_unlock(&ipcpi.state_lock);
LOG_ERR("Failed to create acceptor thread.");
return -1;
@@ -269,6 +270,7 @@ static int normal_ipcp_bootstrap(struct dif_config * conf)
LOG_WARN("Failed to finalize flow manager.");
if (ribmgr_fini())
LOG_WARN("Failed to finalize RIB manager.");
+ ipcp_set_state(IPCP_INIT);
pthread_rwlock_unlock(&ipcpi.state_lock);
LOG_ERR("Failed to create acceptor thread.");
return -1;