Skip Menu |

This queue is for tickets about the Net-Bluetooth CPAN distribution.

Report information
The Basics
Id: 54014
Status: patched
Priority: 0/
Queue: Net-Bluetooth

People
Owner: Nobody in particular
Requestors: benoit.peccatte [...] telecom-bretagne.eu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug with address initialization
Date: Tue, 26 Jan 2010 23:42:07 +0100
To: <bug-Net-Bluetooth [...] rt.cpan.org>
From: BenoƮt Peccatte <benoit.peccatte [...] telecom-bretagne.eu>
Hi, I'm using Net::Bluetooth 0.40 on debian sqeeze via the package libnet-bluetooth-perl. I have a problem with binding, I get an error "Invalid argment" when I call bind on a bluetooth socket. I dug and found that the problem come from the xs code that initialize the L2CAP address (I'm using l2cap). I replaced struct sockaddr_l2 l2addr; by struct sockaddr_l2 l2addr = { 0 }; and now it works correctly. Hope to be usful, Benoit
On Tue Jan 26 17:42:42 2010, benoit.peccatte@telecom-bretagne.eu wrote: Show quoted text
> > Hi, > > I'm using Net::Bluetooth 0.40 on debian sqeeze via the package > libnet-bluetooth-perl. > > I have a problem with binding, I get an error "Invalid argment" when I > call bind on a bluetooth socket. > I dug and found that the problem come from the xs code that initialize the > L2CAP address (I'm using l2cap). > I replaced > struct sockaddr_l2 l2addr; > by > struct sockaddr_l2 l2addr = { 0 }; > and now it works correctly. > > Hope to be usful, > Benoit >
Incorporated into 0.41. Thank you.