[FIX] ack for unknown message 66/48166/1
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Tue, 15 Sep 2015 09:56:58 +0000 (12:56 +0300)
committerVitaliy Cherepanov <v.cherepanov@samsung.com>
Tue, 15 Sep 2015 09:56:58 +0000 (12:56 +0300)
Change-Id: I548c0decfd50c063bfeec7f8a294ae8177662a2f
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
daemon/da_msg_ids.h
daemon/da_protocol.c

index 4691343..4dfd74c 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #define MSG_ID_LIST \
+X(NMSG_UNKNOWN,                        0x0000) \
 X(NMSG_VERSION,                        0x0001) \
 X(NMSG_START,                  0x0002) \
 X(NMSG_STOP,                   0x0003) \
index 50f5689..db570a1 100644 (file)
@@ -1468,6 +1468,7 @@ int host_message_handler(struct msg_t *msg)
        default:
                LOGE("unknown message %d <0x%08X>\n", msg->id, msg->id);
                error_code = ERR_WRONG_MESSAGE_TYPE;
+               msg->id = NMSG_UNKNOWN;
                goto send_ack;
        }