fix svace issue 80/140780/2 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_wearable accepted/tizen/3.0/common/20170804.063937 accepted/tizen/3.0/ivi/20170804.014613 accepted/tizen/3.0/mobile/20170804.014609 accepted/tizen/3.0/wearable/20170804.014617 submit/tizen_3.0/20170728.075400
authorjkjo92 <jkjo92@samsung.com>
Wed, 26 Jul 2017 08:56:46 +0000 (17:56 +0900)
committerjkjo92 <jkjo92@samsung.com>
Wed, 26 Jul 2017 10:16:36 +0000 (19:16 +0900)
Change-Id: Ie35cfbfcdd045944e9e4e4b6287aef1a8b4a1fef
Signed-off-by: jkjo92 <jkjo92@samsung.com>
common/fido_json_handler.c
server/fido_asm_plugin_manager.c

index eb80c0b..98ade9f 100755 (executable)
@@ -2618,6 +2618,7 @@ _uaf_composer_compose_dereg_request(_response_t *uaf_res)
                                json_object_set_string_member(authObject, _JSON_KEY_KEY_ID, (char *)key_id_enc);
                                _INFO("keyid=[%s]", key_id_enc);
                        }
+                       SAFE_DELETE(key_id_enc);
                }
                json_node_take_object(authNode, authObject);
                json_array_add_element(authArray, authNode);
index 6662930..d8c4e9f 100755 (executable)
@@ -173,8 +173,10 @@ __load_plugins(char **plugin_path)
 
        closedir(dir);
 
-       if (is_asm_found == false)
+       if (is_asm_found == false) {
+               _ERR("Failed to find asm");
                return FIDO_ERROR_NOT_SUPPORTED;
+       }
 
        return FIDO_ERROR_NONE;
 }
@@ -293,6 +295,7 @@ _asm_plugin_mgr_discover_all(_asm_plugin_discover_response_cb cb, void *user_dat
        cb_data->user_data = user_data;
 
        if (cb_data->asm_proxy_list_iter == NULL) {
+               _ERR("asm proxy table is empty");
                free(cb_data);
                return FIDO_ERROR_NOT_SUPPORTED;
        }
@@ -373,7 +376,7 @@ _asm_ipc_send(const char *asm_id, const char *asm_request, _asm_ipc_response_cb
        _INFO("asm_request=[%s]", asm_request);
 
        if (asm_id == NULL) {
-               _ERR("dbus proxy failed");
+               _ERR("asm id is NULL");
                return FIDO_ERROR_NOT_SUPPORTED;
        }
 
@@ -424,7 +427,7 @@ _asm_ipc_send_sync(const char *asm_id, const char *asm_req)
        _INFO("_asm_ipc_send_sync");
 
        if (asm_id == NULL) {
-               _ERR("dbus proxy failed");
+               _ERR("asm id is NULL");
                return NULL;
        }