obexd: Fixed segmentation fault: ListFolder doesn't register transfer path

This commit is contained in:
Claudio Takahasi 2008-11-05 13:47:08 -03:00 committed by Marcel Holtmann
parent 8cd6bfd802
commit 41f9926c59

View File

@ -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)
{