Diff between 8cd6bfd802a7900646def184ba3a0f2e60443cef and 41f9926c59b6fedef679ec8a836be979f0032c73

Changed Files

File Additions Deletions Status
obexd/client/session.c +3 -4 modified

Full Patch

diff --git a/obexd/client/session.c b/obexd/client/session.c
index 016153c..1d4d5f2 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)
 {