Fix bug for aul_app_com_send 19/236019/2
authorInkyun Kil <inkyun.kil@samsung.com>
Fri, 12 Jun 2020 04:34:02 +0000 (13:34 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Fri, 12 Jun 2020 04:56:37 +0000 (13:56 +0900)
If using the same bundle continuously, the data of endpoint can't be
changed.

Change-Id: I5d9807449242553aaa435faece28cc7f1960f385
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/app_com.c

index 5605e39..0465d3c 100644 (file)
@@ -194,6 +194,7 @@ API int aul_app_com_send(const char *endpoint, bundle *envelope)
        if (endpoint == NULL || envelope == NULL)
                return -1;
 
+       bundle_del(envelope, AUL_K_COM_ENDPOINT);
        bundle_add_str(envelope, AUL_K_COM_ENDPOINT, endpoint);
 
        ret = app_send_cmd(AUL_UTIL_PID, APP_COM_SEND, envelope);