summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd/normal/main.c')
-rw-r--r--src/ipcpd/normal/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ipcpd/normal/main.c b/src/ipcpd/normal/main.c
index 38789ddd..1599166d 100644
--- a/src/ipcpd/normal/main.c
+++ b/src/ipcpd/normal/main.c
@@ -175,6 +175,11 @@ static int normal_ipcp_bootstrap(struct dif_config * conf)
return -1;
}
+ if (api_bind(conf->dif_name) < 0) {
+ printf("Failed to bind the server api.");
+ return -1;
+ }
+
_ipcp->state = IPCP_ENROLLED;
pthread_rwlock_unlock(&_ipcp->state_lock);