From: jkjo92 Date: Wed, 26 Jul 2017 08:56:46 +0000 (+0900) Subject: fix svace issue X-Git-Tag: accepted/tizen/3.0/common/20170804.063937^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_3.0_mobile;p=platform%2Fcore%2Faccount%2Ffido-client.git fix svace issue Change-Id: Ie35cfbfcdd045944e9e4e4b6287aef1a8b4a1fef Signed-off-by: jkjo92 --- diff --git a/common/fido_json_handler.c b/common/fido_json_handler.c index eb80c0b..98ade9f 100755 --- a/common/fido_json_handler.c +++ b/common/fido_json_handler.c @@ -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); diff --git a/server/fido_asm_plugin_manager.c b/server/fido_asm_plugin_manager.c index 6662930..d8c4e9f 100755 --- a/server/fido_asm_plugin_manager.c +++ b/server/fido_asm_plugin_manager.c @@ -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; }