From 83f47d59fce495b591c99e9f8981b2eddd3f5881 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Tue, 5 May 2009 23:46:19 -0300 Subject: [PATCH] obexd: Fix the registration of the Transfer interface for FTP sessions When the type of the transfer was NULL, which is the case for most GET's, the Transfer interface was not registered. --- obexd/client/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/client/session.c b/obexd/client/session.c index f01c8d069..1ee422932 100644 --- a/obexd/client/session.c +++ b/obexd/client/session.c @@ -1230,7 +1230,7 @@ int session_get(struct session_data *session, const char *type, } } - if (type && !g_str_equal(type, "x-obex/folder-listing")) { + if (type == NULL || !g_str_equal(type, "x-obex/folder-listing")) { session->transfer_path = register_transfer(session->conn, session); if (session->transfer_path == NULL) { if (fd) -- 2.47.3