summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-04-29 10:11:46 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-04-29 10:11:46 +0000
commitbf043491a10e65706c0305050de86c91ab2fae62 (patch)
tree1bdc54bebeb000c3fa85bf53de714f9acb8f0018
parent764b8780db08cf02891b2d7bdce920ae167f8188 (diff)
downloadcpython-git-bf043491a10e65706c0305050de86c91ab2fae62.tar.gz
Merged revisions 80610 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80610 | antoine.pitrou | 2010-04-29 12:05:40 +0200 (jeu., 29 avril 2010) | 4 lines Issue #7834: Fix connect() of Bluetooth L2CAP sockets with recent versions of the Linux kernel. Patch by Yaniv Aknin. ........
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS3
-rw-r--r--Modules/socketmodule.c1
3 files changed, 5 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 830d582d27..7a7d879cc6 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -13,6 +13,7 @@ David Abrahams
Jim Ahlstrom
Farhan Ahmad
Nir Aides
+Yaniv Aknin
Jyrki Alakuijala
Billy G. Allie
Kevin Altis
diff --git a/Misc/NEWS b/Misc/NEWS
index 90638ece97..b3be6e9c8c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -339,6 +339,9 @@ C-API
Library
-------
+- Issue #7834: Fix connect() of Bluetooth L2CAP sockets with recent versions
+ of the Linux kernel. Patch by Yaniv Aknin.
+
- Issue #8295: Added shutil.unpack_archive.
- Issue #6312: Fixed http HEAD request when the transfer encoding is chunked.
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 9dade1dacf..085d58562e 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1290,6 +1290,7 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args,
char *straddr;
addr = (struct sockaddr_l2 *)addr_ret;
+ memset(addr, 0, sizeof(struct sockaddr_l2));
_BT_L2_MEMB(addr, family) = AF_BLUETOOTH;
if (!PyArg_ParseTuple(args, "si", &straddr,
&_BT_L2_MEMB(addr, psm))) {