summaryrefslogtreecommitdiff
path: root/ospfd/ospf_network.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-07-27 16:10:35 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-07-27 16:10:35 +0300
commit95d7a42a1adb441741723e956004a12033164c1d (patch)
treecb1b1246d5145de588ef42737d3964502c6abb85 /ospfd/ospf_network.c
parent53d7080980bb4e3bf6ef053673ebc560c5412103 (diff)
ospfd: don't exit when socket is not created
Let's be less radical. There's no reason to stop the whole daemon when there's a socket creation error in a single VRF. The user can always restart this single VRF to retry to create a socket. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'ospfd/ospf_network.c')
-rw-r--r--ospfd/ospf_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c
index 00fbdc21a1..be06afe532 100644
--- a/ospfd/ospf_network.c
+++ b/ospfd/ospf_network.c
@@ -190,7 +190,7 @@ int ospf_sock_init(struct ospf *ospf)
flog_err(EC_LIB_SOCKET,
"ospf_read_sock_init: socket: %s",
safe_strerror(errno));
- exit(1);
+ return -1;
}
#ifdef IP_HDRINCL