Fix aul_app_group_lower API 42/170142/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 13 Feb 2018 16:00:16 +0000 (01:00 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 13 Feb 2018 16:00:16 +0000 (01:00 +0900)
If the return value is an error, the exit flag should not be set.

Change-Id: Ia3565acac58ad488b67eb62b8ee9e405704a5785
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/app_group.c

index aff839b..80a6c9a 100644 (file)
@@ -231,7 +231,10 @@ API void aul_app_group_lower(int *exit)
        int ret;
        unsigned char dummy[1] = { 0 };
 
-       ret = aul_sock_send_raw(AUL_UTIL_PID, getuid(), APP_GROUP_LOWER, dummy, 0, AUL_SOCK_NONE);
+       ret = aul_sock_send_raw(AUL_UTIL_PID, getuid(), APP_GROUP_LOWER,
+                       dummy, 0, AUL_SOCK_NONE);
+       if (ret < 0)
+               return;
        *exit = ret;
 }