summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2017-02-10 11:13:34 +0100
committerSander Vrijders <[email protected]>2017-02-10 11:13:34 +0100
commitefb0106950efcf3b5ef86218f719981df9b9e298 (patch)
treef017fda3ce1c1fee8328f2d1108eef14c666594f /src/ipcpd/ipcp.c
parent4051a5afbfc92873af44d47ae6613d7bd17f7433 (diff)
downloadouroboros-efb0106950efcf3b5ef86218f719981df9b9e298.tar.gz
ouroboros-efb0106950efcf3b5ef86218f719981df9b9e298.zip
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.
Diffstat (limited to 'src/ipcpd/ipcp.c')
-rw-r--r--src/ipcpd/ipcp.c4
1 files changed, 1 insertions, 3 deletions
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);