summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
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,