From 41f9926c59b6fedef679ec8a836be979f0032c73 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Wed, 5 Nov 2008 13:47:08 -0300 Subject: [PATCH] obexd: Fixed segmentation fault: ListFolder doesn't register transfer path --- obexd/client/session.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/obexd/client/session.c b/obexd/client/session.c index 016153c3f..1d4d5f23c 100644 --- a/obexd/client/session.c +++ b/obexd/client/session.c @@ -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) { -- 2.47.3