diff options
-rw-r--r-- | obexd/src/manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/obexd/src/manager.c b/obexd/src/manager.c index f84384ae4..78b138c85 100644 --- a/obexd/src/manager.c +++ b/obexd/src/manager.c @@ -265,6 +265,9 @@ static DBusMessage *transfer_cancel(DBusConnection *connection, struct obex_session *os = transfer->session; const char *sender; + if (!agent) + return agent_does_not_exist(msg); + if (!os) return invalid_args(msg); |