Diff between cb0bb3a9e8a8a127c329048968a6b83695f3b847 and c8dc6d040fc8ee6440f753be5ae98816e0bb679b

Changed Files

File Additions Deletions Status
tools/hcidump.c +1 -0 modified

Full Patch

diff --git a/tools/hcidump.c b/tools/hcidump.c
index d232dec..5524a5c 100644
--- a/tools/hcidump.c
+++ b/tools/hcidump.c
@@ -603,6 +603,7 @@ static int open_socket(int dev, unsigned long flags)
 	}
 
 	/* Bind socket to the HCI device */
+	memset(&addr, 0, sizeof(addr));
 	addr.hci_family = AF_BLUETOOTH;
 	addr.hci_dev = dev;
 	if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) {