Skip to content

Commit

Permalink
dlt_daemon_client: Fix Control Msg ECUId comparison with active Gatew…
Browse files Browse the repository at this point in the history
…ay (#414)

Signed-off-by: Andrei-Mircea Rusu <[email protected]>

Signed-off-by: Andrei-Mircea Rusu <[email protected]>
Co-authored-by: Andrei-Mircea Rusu <[email protected]>
  • Loading branch information
andreirusu96 and Andrei-Mircea Rusu authored Oct 13, 2022
1 parent 154d225 commit 0f969a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/dlt_daemon_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0f969a9

Please sign in to comment.