Bluetooth: HCI - Fix info leak in getsockopt(HCI_FILTER)
[linux-3.10.git] / net / bluetooth / hci_sock.c
index a7f04de..a27bbc3 100644 (file)
@@ -1009,6 +1009,7 @@ static int hci_sock_getsockopt(struct socket *sock, int level, int optname,
                {
                        struct hci_filter *f = &hci_pi(sk)->filter;
 
+                       memset(&uf, 0, sizeof(uf));
                        uf.type_mask = f->type_mask;
                        uf.opcode    = f->opcode;
                        uf.event_mask[0] = *((u32 *) f->event_mask + 0);