Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdf3cd94 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Reject OBEX connection request for OPP with Target.

According to OPP OBEX specification Sec 5.4, the Push
client should not use target header.

Patch contributed by: inshik.shin@samsung.com

Change-Id: Iaeaa2d488da6592f8bb76a9957ca4b784d032803
parent 50b0e002
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -530,7 +530,7 @@ public class BluetoothOppObexServerSession extends ServerRequestHandler implemen
            byte[] uuid = (byte[])request.getHeader(HeaderSet.TARGET);
            if (V) Log.v(TAG, "onConnect(): uuid =" + Arrays.toString(uuid));
            if(uuid != null) {
                reply.setHeader(HeaderSet.WHO, uuid);
                 return ResponseCodes.OBEX_HTTP_NOT_ACCEPTABLE;
            }
        } catch (IOException e) {
            Log.e(TAG, e.toString());