summaryrefslogtreecommitdiffstats
path: root/src/hci.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-04-25 15:55:51 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-04-25 15:55:51 +0000
commit07e291d7269885187586106e059f29abb336cb27 (patch)
tree803027fdf22223a83c10ab5c4864bd047f3758bf /src/hci.c
parentfd920beb236c034c779de5ccf4a5d050897d40bc (diff)
Add missing memset() for socket address
Diffstat (limited to 'src/hci.c')
-rw-r--r--src/hci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hci.c b/src/hci.c
index d0c2394c..35aa9059 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -856,6 +856,7 @@ int hci_open_dev(int dev_id)
return dd;
/* Bind socket to the HCI device */
+ memset(&a, 0, sizeof(a));
a.hci_family = AF_BLUETOOTH;
a.hci_dev = dev_id;
if (bind(dd, (struct sockaddr *) &a, sizeof(a)) < 0)