Fix wrong exception handling about appid check 09/279609/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 12 Aug 2022 08:14:46 +0000 (17:14 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 12 Aug 2022 08:14:46 +0000 (17:14 +0900)
If the appid is nullptr in the __check_request() function, the function
should return 0.

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

index a81d286532b8866be977802b736637af4779fff4..53bb9fed1d4fba83916936b948ee1300e181ffa8 100644 (file)
@@ -503,7 +503,7 @@ static int __check_request(request_h req)
                return 0;
 
        if (req->kb == NULL)
-               return -1;
+               return 0;
 
        if (__can_be_implicit_launch(req->cmd))
                _app_control_resolve(req->t_uid, req->kb);
@@ -517,7 +517,7 @@ static int __check_request(request_h req)
 
        appid = bundle_get_val(req->kb, AUL_K_APPID);
        if (appid == NULL)
-               return -1;
+               return 0;
 
        app_status = __get_app_status(req, appid);
        if (app_status == NULL)