From efb0106950efcf3b5ef86218f719981df9b9e298 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Fri, 10 Feb 2017 11:13:34 +0100 Subject: ipcpd: Remove logging if not initialized yet This removes the logs that would print to stdout if the IPCP fails to initialize. If the user had asked that logs would be printed to the syslog this would be unwanted behaviour. --- src/ipcpd/ipcp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ipcpd/ipcp.c') diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c index 42720867..24d8da46 100644 --- a/src/ipcpd/ipcp.c +++ b/src/ipcpd/ipcp.c @@ -306,10 +306,8 @@ int ipcp_init(int argc, struct timeval tv = {(IPCP_ACCEPT_TIMEOUT / 1000), (IPCP_ACCEPT_TIMEOUT % 1000) * 1000}; - if (parse_args(argc, argv, &log)) { - log_err("Failed to parse arguments."); + if (parse_args(argc, argv, &log)) return -1; - } log_init(log); -- cgit v1.2.3