From 9852be711c80430004ed9ee0bd718476837896e8 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Fri, 4 Jan 2019 19:08:10 -0200 Subject: [PATCH] ripd: failure to create a socket shouldn't be a fatal error The ripd code can handle this error just fine (e.g. reject the configuration transaction), there's no need to exit when a socket fails to be created. Signed-off-by: Renato Westphal --- ripd/ripd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ripd/ripd.c b/ripd/ripd.c index 916fba2269..c6abfb557d 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -1347,7 +1347,7 @@ int rip_create_socket(void) if (sock < 0) { flog_err_sys(EC_LIB_SOCKET, "Cannot create UDP socket: %s", safe_strerror(errno)); - exit(1); + return -1; } sockopt_broadcast(sock); -- 2.39.5