Diff between b8c8567c3dd604e7d0830d25d723ca70bda12db2 and 1282ed28f07d7b7a03df74c6c9a61964683b61e5

Changed Files

File Additions Deletions Status
obexd/client/bluetooth.c +2 -1 modified

Full Patch

diff --git a/obexd/client/bluetooth.c b/obexd/client/bluetooth.c
index b49a82e..56f80fe 100644
--- a/obexd/client/bluetooth.c
+++ b/obexd/client/bluetooth.c
@@ -261,7 +261,8 @@ static void search_callback(uint8_t type, uint16_t status,
 		}
 
 		data = sdp_data_get(rec, 0x0200);
-		if (data != NULL)
+		/* PSM must be odd and lsb of upper byte must be 0 */
+		if (data != NULL && (data->val.uint16 & 0x0101) == 0x0001)
 			ch = data->val.uint16;
 
 		sdp_record_free(rec);