Skip to content

Commit b25005e

Browse files
gh-129288: Update comment re discarding cid for BR/EDR L2CAP socket
1 parent 2c537ba commit b25005e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/socketmodule.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,9 @@ makesockaddr(SOCKET_T sockfd, struct sockaddr *addr, size_t addrlen, int proto)
14951495
PyObject *addrobj = makebdaddr(&_BT_L2_MEMB(a, bdaddr));
14961496
PyObject *ret = NULL;
14971497
if (addrobj) {
1498-
/* Retain old format for non-LE address */
1498+
/* Retain old format for non-LE address.
1499+
(cid may be set for BR/EDR, but we're discarding it for now)
1500+
*/
14991501
if (_BT_L2_MEMB(a, bdaddr_type) == BDADDR_BREDR) {
15001502
ret = Py_BuildValue("Oi",
15011503
addrobj,

0 commit comments

Comments
 (0)