summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/dlt_daemon_client.c')
-rw-r--r--src/daemon/dlt_daemon_client.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/daemon/dlt_daemon_client.c b/src/daemon/dlt_daemon_client.c
index becd061..b256988 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,
@@ -1085,7 +1085,7 @@ void dlt_daemon_control_get_log_info(int sock,
daemon->ecuid,
verbose);
- if (application) {
+ if ((user_list->applications) && (application)) {
/* Calculate start offset within contexts[] */
offset_base = 0;
@@ -1622,7 +1622,7 @@ void dlt_daemon_control_callsw_cinjection(int sock,
/* write to FIFO */
DltReturnValue ret =
- dlt_user_log_out3(context->user_handle, &(userheader), sizeof(DltUserHeader),
+ dlt_user_log_out3_with_timeout(context->user_handle, &(userheader), sizeof(DltUserHeader),
&(usercontext), sizeof(DltUserControlMsgInjection),
userbuffer, (size_t) data_length_inject);
@@ -1690,7 +1690,7 @@ void dlt_daemon_find_multiple_context_and_send_log_level(int sock,
int count = 0;
DltDaemonContext *context = NULL;
char src_str[DLT_ID_SIZE + 1] = { 0 };
- int8_t ret = 0;
+ int ret = 0;
DltDaemonRegisteredUsers *user_list = NULL;
if (daemon == 0) {
@@ -1712,7 +1712,7 @@ void dlt_daemon_find_multiple_context_and_send_log_level(int sock,
else
strncpy(src_str, context->ctid, DLT_ID_SIZE);
- ret = (int8_t) strncmp(src_str, str, (size_t) len);
+ ret = strncmp(src_str, str, len);
if (ret == 0)
dlt_daemon_send_log_level(sock, daemon, daemon_local, context, loglevel, verbose);
@@ -1863,7 +1863,7 @@ void dlt_daemon_find_multiple_context_and_send_trace_status(int sock,
int count = 0;
DltDaemonContext *context = NULL;
char src_str[DLT_ID_SIZE + 1] = { 0 };
- int8_t ret = 0;
+ int ret = 0;
DltDaemonRegisteredUsers *user_list = NULL;
if (daemon == 0) {
@@ -1885,7 +1885,7 @@ void dlt_daemon_find_multiple_context_and_send_trace_status(int sock,
else
strncpy(src_str, context->ctid, DLT_ID_SIZE);
- ret = (int8_t) strncmp(src_str, str, (size_t) len);
+ ret = strncmp(src_str, str, len);
if (ret == 0)
dlt_daemon_send_trace_status(sock, daemon, daemon_local, context, tracestatus, verbose);