Diff between aaecee599b908eff5fb4e6d436085ba70a8d1786 and 984a6511c4cf2a9df5e415a0b6e7d4a575477a62

Changed Files

File Additions Deletions Status
obexd/src/manager.c +3 -0 modified

Full Patch

diff --git a/obexd/src/manager.c b/obexd/src/manager.c
index 241c9af..e162e7f 100644
--- a/obexd/src/manager.c
+++ b/obexd/src/manager.c
@@ -452,6 +452,9 @@ static void agent_cancel()
 {
 	DBusMessage *msg;
 
+	if (agent == NULL)
+		return;
+
 	msg = dbus_message_new_method_call(agent->bus_name, agent->path,
 					"org.openobex.Agent", "Cancel");