From: Mikel Astiz <redacted>
The authorization check should consider the scenario of no agent being
assigned to the transfer.
---
client/transfer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/client/transfer.c b/client/transfer.c
index 157811d..4054799 100644
--- a/client/transfer.c
+++ b/client/transfer.c
@@ -168,7 +168,7 @@ static DBusMessage *obc_transfer_cancel(DBusConnection *connection,
DBusMessage *reply;
sender = dbus_message_get_sender(message);
- if (g_str_equal(transfer->agent, sender) == FALSE)
+ if (g_strcmp0(transfer->agent, sender) != 0)
return g_dbus_create_error(message,
"org.openobex.Error.NotAuthorized",
"Not Authorized");
--
1.7.6.5