mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-15 06:55:30 +08:00
obexd: Fixed segmentation fault: ListFolder doesn't register transfer path
This commit is contained in:
parent
8cd6bfd802
commit
41f9926c59
@ -424,7 +424,7 @@ static void agent_request(DBusConnection *conn, const char *agent_name,
|
||||
{
|
||||
DBusMessage *message;
|
||||
|
||||
if (agent_name == NULL || agent_path == NULL)
|
||||
if (agent_name == NULL || agent_path == NULL || transfer_path == NULL)
|
||||
return;
|
||||
|
||||
message = dbus_message_new_method_call(agent_name,
|
||||
@ -445,7 +445,7 @@ static void agent_notify_progress(DBusConnection *conn, const char *agent_name,
|
||||
{
|
||||
DBusMessage *message;
|
||||
|
||||
if (agent_name == NULL || agent_path == NULL)
|
||||
if (agent_name == NULL || agent_path == NULL || transfer_path == NULL)
|
||||
return;
|
||||
|
||||
message = dbus_message_new_method_call(agent_name,
|
||||
@ -466,7 +466,7 @@ static void agent_notify_complete(DBusConnection *conn, const char *agent_name,
|
||||
{
|
||||
DBusMessage *message;
|
||||
|
||||
if (agent_name == NULL || agent_path == NULL)
|
||||
if (agent_name == NULL || agent_path == NULL || transfer_path == NULL)
|
||||
return;
|
||||
|
||||
message = dbus_message_new_method_call(agent_name,
|
||||
@ -481,7 +481,6 @@ static void agent_notify_complete(DBusConnection *conn, const char *agent_name,
|
||||
g_dbus_send_message(conn, message);
|
||||
}
|
||||
|
||||
|
||||
static void abort_transfer(struct session_data *session)
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user