Diff between 172f5121ae64bb70b66b84f80c5dc69e0d5bc2d6 and 1c55fb8d7b67ac6ead97c01023b9a0fb3709461d

Changed Files

File Additions Deletions Status
obexd/src/obex.c +1 -2 modified

Full Patch

diff --git a/obexd/src/obex.c b/obexd/src/obex.c
index c7e6520..6b34a8c 100644
--- a/obexd/src/obex.c
+++ b/obexd/src/obex.c
@@ -194,9 +194,8 @@ static void cmd_connect(struct obex_session *os,
 	/* connection id will be used to track the sessions, even for OPP */
 	os->cid = ++cid;
 
-	register_transfer(os->cid);
-
 	if (os->target == NULL) {
+		register_transfer(os->cid);
 		/* OPP doesn't contains target or connection id. */
 		OBEX_ObjectSetRsp(obj, OBEX_RSP_CONTINUE, OBEX_RSP_SUCCESS);
 		return;