From 0f969a93770b2261b6d18b9296263f0deaf134bd Mon Sep 17 00:00:00 2001 From: Andrei Rusu Date: Thu, 13 Oct 2022 10:13:54 +0300 Subject: dlt_daemon_client: Fix Control Msg ECUId comparison with active Gateway (#414) Signed-off-by: Andrei-Mircea Rusu Signed-off-by: Andrei-Mircea Rusu Co-authored-by: Andrei-Mircea Rusu --- src/daemon/dlt_daemon_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/dlt_daemon_client.c b/src/daemon/dlt_daemon_client.c index 9925380..82e2965 100644 --- a/src/daemon/dlt_daemon_client.c +++ b/src/daemon/dlt_daemon_client.c @@ -484,7 +484,7 @@ int dlt_daemon_client_process_control(int sock, /* check if the message needs to be forwarded */ if (daemon_local->flags.gatewayMode == 1) { - if (strcmp(daemon_local->flags.evalue, extra.ecu) != 0) + if (strncmp(daemon_local->flags.evalue, extra.ecu, DLT_ID_SIZE) != 0) return dlt_gateway_forward_control_message(&daemon_local->pGateway, daemon_local, msg, -- cgit v1.2.1