Diff between 4ce2d8b85b90fb8f80b97954b989e0dbcf3cda43 and dd051a9e5c75225ee1851390bd9ff6cf028f30c7

Changed Files

File Additions Deletions Status
obexd/plugins/opp.c +4 -1 modified

Full Patch

diff --git a/obexd/plugins/opp.c b/obexd/plugins/opp.c
index 70882c2..055d2bd 100644
--- a/obexd/plugins/opp.c
+++ b/obexd/plugins/opp.c
@@ -118,8 +118,11 @@ static gint opp_chkput(struct obex_session *os, gpointer user_data)
 	if (obex_get_size(os) == OBJECT_SIZE_DELETE)
 		return -EINVAL;
 
-	if (obex_get_auto_accept(os))
+	if (obex_get_auto_accept(os)) {
+		folder = g_strdup(obex_get_root_folder(os));
+		name = g_strdup(obex_get_name(os));
 		goto skip_auth;
+	}
 
 	time = 0;
 	ret = manager_request_authorization(os, time, &folder, &name);