diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-04-25 15:55:51 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-04-25 15:55:51 +0000 |
commit | 07e291d7269885187586106e059f29abb336cb27 (patch) | |
tree | 803027fdf22223a83c10ab5c4864bd047f3758bf /src/hci.c | |
parent | fd920beb236c034c779de5ccf4a5d050897d40bc (diff) |
Add missing memset() for socket address
Diffstat (limited to 'src/hci.c')
-rw-r--r-- | src/hci.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |