summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-16 17:17:52 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-16 17:17:52 +0000
commit64f07dce7cd9d689fd589908b20a70756b66e243 (patch)
treed5ff5de1989d153eac8c86520bbce578f2fe09b9 /hcid
parent289e29c6c4a073569c7e7aa3c8fc51ed5c46993f (diff)
Set request structure to zero
Diffstat (limited to 'hcid')
-rw-r--r--hcid/security.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hcid/security.c b/hcid/security.c
index 71cd5e4e..4047c9fa 100644
--- a/hcid/security.c
+++ b/hcid/security.c
@@ -749,6 +749,7 @@ static inline void conn_complete(int dev, int dev_id, bdaddr_t *sba, void *ptr)
if (!str) {
read_remote_version_cp cp;
+ memset(&cp, 0, sizeof(cp));
cp.handle = evt->handle;
data = hci_req_data_new(dev_id, &evt->bdaddr, OGF_LINK_CTL,