summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-07-27 15:10:35 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-07-27 15:10:35 +0200
commit95d7a42a1adb441741723e956004a12033164c1d (patch)
treecb1b1246d5145de588ef42737d3964502c6abb85 /ospfd
parentMerge pull request #9166 from idryzhov/vtysh-enable (diff)
downloadfrr-95d7a42a1adb441741723e956004a12033164c1d.tar.xz
frr-95d7a42a1adb441741723e956004a12033164c1d.zip
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')
-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 00fbdc21a..be06afe53 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