diff options
author | Andrei Rusu <andrew_x_2005@yahoo.com> | 2022-10-13 10:13:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-13 09:13:54 +0200 |
commit | 0f969a93770b2261b6d18b9296263f0deaf134bd (patch) | |
tree | bb516f40981008b8c340903df537d6665c74c97c | |
parent | 154d225b934de70387533f3dfaf5d449a580c28b (diff) | |
download | DLT-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>
-rw-r--r-- | src/daemon/dlt_daemon_client.c | 2 |
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, |