Fix uninitialized struct sockaddr_hci memory passed to bind()
authorAnderson Lizardo <anderson.lizardo@openbossa.org>
Thu, 20 Jan 2011 21:02:48 +0000 (17:02 -0400)
committerJohan Hedberg <johan.hedberg@nokia.com>
Fri, 21 Jan 2011 06:56:11 +0000 (12:26 +0530)
commitd27c8ec891ebb719c1192e091410c5c824bc8afd
treec9084592c5a89b61c3d678354d4324d1189ffee3
parent06c932e3c8957e9ac2eb7b3e94f08678e5583ee9
Fix uninitialized struct sockaddr_hci memory passed to bind()

The bind() call in open_socket() was passing a struct sockaddr_hci to
bind() with two uninitialized bytes. This caused "Invalid argument" errors
on kernels which do strict checks of struct sockaddr_hci fields.
src/hcidump.c