summaryrefslogtreecommitdiff
path: root/src/daemon/dlt-daemon.c
diff options
context:
space:
mode:
authorAlexander Mohr <alexander.m.mohr@mercedes-benz.com>2022-09-28 10:22:19 +0200
committerGitHub <noreply@github.com>2022-09-28 10:22:19 +0200
commita6c42a0c5c67e764d964f91234b9c8c0f9d09b54 (patch)
tree3be72561824a86f7ebb97098aec861db4cba3bcc /src/daemon/dlt-daemon.c
parent26dd01c3eff30ad00300b8a47f13c29d1ba31019 (diff)
downloadDLT-daemon-a6c42a0c5c67e764d964f91234b9c8c0f9d09b54.tar.gz
dlt-gateway: Fix crash on invalid ip (#381)
* dlt-gateway crashed when an invalid ip address was configured as a null pointer was used for strdup Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
Diffstat (limited to 'src/daemon/dlt-daemon.c')
-rw-r--r--src/daemon/dlt-daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index 8e3e646..35fb024 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -1045,7 +1045,7 @@ int main(int argc, char *argv[])
/* initiate gateway */
if (daemon_local.flags.gatewayMode == 1) {
if (dlt_gateway_init(&daemon_local, daemon_local.flags.vflag) == -1) {
- dlt_log(LOG_CRIT, "Fail to create gateway\n");
+ dlt_log(LOG_CRIT, "Failed to create gateway\n");
return -1;
}