From 2cec5d20ae0b5361a84bfb8170335f2502ddd88f Mon Sep 17 00:00:00 2001 From: "S. Hameed" Date: Fri, 20 Mar 2015 18:01:24 +0900 Subject: Add Service ID Last entry to avoid further modifications in dependent code Signed-off-by: S. Hameed Signed-off-by: Christoph Lipka --- src/daemon/dlt_daemon_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemon/dlt_daemon_client.c') diff --git a/src/daemon/dlt_daemon_client.c b/src/daemon/dlt_daemon_client.c index 00ad5b9..6fde373 100644 --- a/src/daemon/dlt_daemon_client.c +++ b/src/daemon/dlt_daemon_client.c @@ -299,7 +299,7 @@ int dlt_daemon_client_process_control(int sock, DltDaemon *daemon, DltDaemonLoca id_tmp = *((uint32_t*)(msg->databuffer)); id=DLT_ENDIAN_GET_32(msg->standardheader->htyp ,id_tmp); - if ((id > 0) && (id <= DLT_SERVICE_ID_MESSAGE_BUFFER_OVERFLOW)) + if ((id > 0) && (id < DLT_SERVICE_ID_LAST_ENTRY)) { /* Control message handling */ switch (id) -- cgit v1.2.1