change(bt/bluedroid): Some minor changes in bluedroid

- Increase the number of BTM security records for services
- Fix a coding style issue in OBEX and GOEP
This commit is contained in:
linruihao
2024-12-16 19:39:38 +08:00
parent a03527e99b
commit d679115379
3 changed files with 3 additions and 3 deletions

View File

@@ -491,7 +491,7 @@ UINT16 OBEX_AppendHeaderRaw(BT_HDR *pkt, UINT8 header_id, const UINT8 *data, UIN
return OBEX_INVALID_PARAM;
}
if ((data == NULL) ^ (data_len == 0)) {
if ((data == NULL && data_len != 0) || (data != NULL && data_len == 0)) {
return OBEX_INVALID_PARAM;
}