summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Rusu <andrew_x_2005@yahoo.com>2022-10-13 10:13:54 +0300
committerGitHub <noreply@github.com>2022-10-13 09:13:54 +0200
commit0f969a93770b2261b6d18b9296263f0deaf134bd (patch)
treebb516f40981008b8c340903df537d6665c74c97c /src
parent154d225b934de70387533f3dfaf5d449a580c28b (diff)
downloadDLT-daemon-0f969a93770b2261b6d18b9296263f0deaf134bd.tar.gz
dlt_daemon_client: Fix Control Msg ECUId comparison with active Gateway (#414)
Signed-off-by: Andrei-Mircea Rusu <andrei-mircea.rusu@continental-corporation.com> Signed-off-by: Andrei-Mircea Rusu <andrei-mircea.rusu@continental-corporation.com> Co-authored-by: Andrei-Mircea Rusu <andrei-mircea.rusu@continental-corporation.com>
Diffstat (limited to 'src')
-rw-r--r--src/daemon/dlt_daemon_client.c2
1 files changed, 1 insertions, 1 deletions
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,