summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/normal/main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ipcpd/normal/main.c b/src/ipcpd/normal/main.c
index ba3fe33f..152f7640 100644
--- a/src/ipcpd/normal/main.c
+++ b/src/ipcpd/normal/main.c
@@ -309,6 +309,11 @@ int main(int argc,
goto fail_rib_init;
}
+ if (notifier_init()) {
+ log_err("Failed to initialize notifier component.");
+ goto fail_notifier_init;
+ }
+
if (connmgr_init()) {
log_err("Failed to initialize connection manager.");
goto fail_connmgr_init;
@@ -319,11 +324,6 @@ int main(int argc,
goto fail_enroll_init;
}
- if (notifier_init()) {
- log_err("Failed to initialize notifier component.");
- goto fail_notifier_init;
- }
-
if (ipcp_boot() < 0) {
log_err("Failed to boot IPCP.");
goto fail_boot;
@@ -343,12 +343,12 @@ int main(int argc,
finalize_components();
}
- notifier_fini();
-
enroll_fini();
connmgr_fini();
+ notifier_fini();
+
rib_fini();
ipcp_fini();
@@ -358,12 +358,12 @@ int main(int argc,
fail_create_r:
ipcp_shutdown();
fail_boot:
- notifier_fini();
- fail_notifier_init:
enroll_fini();
fail_enroll_init:
connmgr_fini();
fail_connmgr_init:
+ notifier_fini();
+ fail_notifier_init:
rib_fini();
fail_rib_init:
ipcp_fini();