diff options
author | Luiz Augusto Von Dentz <luiz.dentz-von@nokia.com> | 2010-05-25 11:25:35 +0300 |
---|---|---|
committer | Luiz Augusto Von Dentz <luiz.dentz-von@nokia.com> | 2010-05-25 11:25:35 +0300 |
commit | b552fca84bf096c229f90d0070761da31b4ffdb4 (patch) | |
tree | 941d28c52abb690fe211594c020e5ad1311ccca1 | |
parent | 9c0298c8d64105375878fa6bba8ca47a0cc0c232 (diff) | |
download | obexd-b552fca84bf096c229f90d0070761da31b4ffdb4.tar.gz |
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.
-rw-r--r-- | plugins/opp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/opp.c b/plugins/opp.c index 01afe76..fc69544 100644 --- a/plugins/opp.c +++ b/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); |