From e4e756c9002585ef072a4b543a9633116e913c5e Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Tue, 27 Jul 2021 16:10:35 +0300 Subject: [PATCH] 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 (cherry picked from commit 95d7a42a1adb441741723e956004a12033164c1d) --- ospfd/ospf_network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5