summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_errors.c2
-rw-r--r--ospfd/ospf_main.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/ospfd/ospf_errors.c b/ospfd/ospf_errors.c
index f4ae731a9..244aa2695 100644
--- a/ospfd/ospf_errors.c
+++ b/ospfd/ospf_errors.c
@@ -80,7 +80,5 @@ static struct ferr_ref ferr_ospf_err[] = {
void ospf_error_init(void)
{
- ferr_ref_init();
-
ferr_ref_add(ferr_ospf_err);
}
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index 1a25e27d7..c3f919ef1 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -207,6 +207,9 @@ int main(int argc, char **argv)
ospf_route_map_init();
ospf_opaque_init();
+ /* OSPF errors init */
+ ospf_error_init();
+
/* Need to initialize the default ospf structure, so the interface mode
commands can be duly processed if they are received before 'router
ospf',