[Python-checkins] r80611 - in python/branches/release26-maint: Misc/ACKS Misc/NEWS Modules/socketmodule.c

antoine.pitrou python-checkins at python.org
Thu Apr 29 12:07:38 CEST 2010


Author: antoine.pitrou
Date: Thu Apr 29 12:07:38 2010
New Revision: 80611

Log:
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.
........


Modified:
   python/branches/release26-maint/   (props changed)
   python/branches/release26-maint/Misc/ACKS
   python/branches/release26-maint/Misc/NEWS
   python/branches/release26-maint/Modules/socketmodule.c

Modified: python/branches/release26-maint/Misc/ACKS
==============================================================================
--- python/branches/release26-maint/Misc/ACKS	(original)
+++ python/branches/release26-maint/Misc/ACKS	Thu Apr 29 12:07:38 2010
@@ -13,6 +13,7 @@
 David Abrahams
 Jim Ahlstrom
 Farhan Ahmad
+Yaniv Aknin
 Jyrki Alakuijala
 Billy G. Allie
 Kevin Altis

Modified: python/branches/release26-maint/Misc/NEWS
==============================================================================
--- python/branches/release26-maint/Misc/NEWS	(original)
+++ python/branches/release26-maint/Misc/NEWS	Thu Apr 29 12:07:38 2010
@@ -33,6 +33,9 @@
 Library
 -------
 
+- Issue #7834: Fix connect() of Bluetooth L2CAP sockets with recent versions
+  of the Linux kernel.  Patch by Yaniv Aknin.
+
 - Issue #6312: Fixed http HEAD request when the transfer encoding is chunked.
   It should correctly return an empty response now.
 

Modified: python/branches/release26-maint/Modules/socketmodule.c
==============================================================================
--- python/branches/release26-maint/Modules/socketmodule.c	(original)
+++ python/branches/release26-maint/Modules/socketmodule.c	Thu Apr 29 12:07:38 2010
@@ -1314,6 +1314,7 @@
 			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))) {


More information about the Python-checkins mailing list