]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: don't exit when socket is not created
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 27 Jul 2021 13:10:35 +0000 (16:10 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 27 Jul 2021 13:10:35 +0000 (16:10 +0300)
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>
ospfd/ospf_network.c

index 00fbdc21a1dff4721f5f425f8d508865454b2691..be06afe532620e162dbde3d4bc82809ce34df9ae 100644 (file)
@@ -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