Return the appropriate error 68/193068/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 14 Nov 2018 06:22:03 +0000 (15:22 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 14 Nov 2018 08:19:06 +0000 (17:19 +0900)
Change-Id: I947efcb41723ce26b4e98e1871158ace7e96a647
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
service_lib/autofill_service.c

index 08e85c6..ac240de 100644 (file)
@@ -438,6 +438,7 @@ EXPORT_API int autofill_service_send_auth_info(autofill_auth_info_h h)
     char *service_name = NULL;
     char *service_logo_image_path = NULL;
     char *service_message = NULL;
+    int ret = AUTOFILL_ERROR_NONE;
 
     if (!h) {
         LOGW("parameter is NULL");
@@ -465,7 +466,7 @@ EXPORT_API int autofill_service_send_auth_info(autofill_auth_info_h h)
     rpc_port_autofill_svc_auth_info_set_service_message(auth_info_h, service_message);
     rpc_port_autofill_svc_auth_info_set_service_logo_image_path(auth_info_h, service_logo_image_path);
 
-    rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_invoke(g_auth_info_cb, auth_info_h);
+    ret = rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_invoke(g_auth_info_cb, auth_info_h);
 
     if (app_id)
         free(app_id);
@@ -484,7 +485,7 @@ EXPORT_API int autofill_service_send_auth_info(autofill_auth_info_h h)
 
     rpc_port_autofill_svc_auth_info_destroy(auth_info_h);
 
-    return AUTOFILL_ERROR_NONE;
+    return ret;
 }
 
 // fill request
@@ -554,6 +555,7 @@ EXPORT_API int autofill_service_send_fill_response(autofill_fill_response_h h)
 {
     /* create autofill response */
     rpc_port_autofill_svc_fill_response_h fill_response_h;
+    int ret = AUTOFILL_ERROR_NONE;
 
     Eina_List *l;
     autofill_fill_response_group_h it;
@@ -584,11 +586,11 @@ EXPORT_API int autofill_service_send_fill_response(autofill_fill_response_h h)
         rpc_port_autofill_svc_response_group_destroy(res_group_h);
     }
 
-    rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_invoke(g_fill_response_cb, fill_response_h);
+    ret = rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_invoke(g_fill_response_cb, fill_response_h);
 
     rpc_port_autofill_svc_fill_response_destroy(fill_response_h);
 
-    return AUTOFILL_ERROR_NONE;
+    return ret;
 }
 
 EXPORT_API int autofill_service_set_commit_cb(autofill_service_commit_cb callback, void *user_data)