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);
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;
}
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;
}
_INFO("asm_request=[%s]", asm_request);
if (asm_id == NULL) {
- _ERR("dbus proxy failed");
+ _ERR("asm id is NULL");
return FIDO_ERROR_NOT_SUPPORTED;
}
_INFO("_asm_ipc_send_sync");
if (asm_id == NULL) {
- _ERR("dbus proxy failed");
+ _ERR("asm id is NULL");
return NULL;
}