summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-04-29 10:05:40 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-04-29 10:05:40 (GMT)
commitf56a288b1e59cc260372f32665a209d381be404b (patch)
tree26f839f6ca2aaa017e2d2cb125f52c4ae4c03fd6 /Modules
parentb17b3c51e20799e4e82b839edb033971cdc4dcc2 (diff)
downloadcpython-f56a288b1e59cc260372f32665a209d381be404b.zip
cpython-f56a288b1e59cc260372f32665a209d381be404b.tar.gz
cpython-f56a288b1e59cc260372f32665a209d381be404b.tar.bz2
Issue #7834: Fix connect() of Bluetooth L2CAP sockets with recent versions
of the Linux kernel. Patch by Yaniv Aknin.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 901cb7d..0625acb 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1326,6 +1326,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))) {