From 6defa88864393eae0242be8e5fca84adc93dc92d Mon Sep 17 00:00:00 2001 From: Luiz Augusto Von Dentz Date: Tue, 25 May 2010 11:25:35 +0300 Subject: [PATCH] obexd: Fix object name not being updated when agent changes it In case of opp the agent may have changed the object name which in case of the name being NULL will cause a bad request response. --- obexd/plugins/opp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/obexd/plugins/opp.c b/obexd/plugins/opp.c index 01afe76d9..fc695441f 100644 --- a/obexd/plugins/opp.c +++ b/obexd/plugins/opp.c @@ -140,6 +140,9 @@ skip_auth: if (name == NULL || strlen(name) == 0) return -EBADR; + if (g_str_equal(name, obex_get_name(os)) == FALSE) + obex_set_name(os, name); + path = g_build_filename(folder, name, NULL); manager_emit_transfer_started(os); -- 2.47.3