diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2007-06-06 18:32:56 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2007-06-06 18:32:56 +0000 |
commit | 83ff9da4fd48d92961146519dc88b6d066863277 (patch) | |
tree | f87611aea78cb837286e8ea28f95a1fb3071daa6 /sys/netbt | |
parent | 90b0b547a21d1fc64a884d21793f88422ffabf39 (diff) |
Do not dereference a garbage pointer in hci_acl_send()
testing ckuethe
Diffstat (limited to 'sys/netbt')
-rw-r--r-- | sys/netbt/hci_link.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netbt/hci_link.c b/sys/netbt/hci_link.c index 9b7c9955b05..a62cc8a3ead 100644 --- a/sys/netbt/hci_link.c +++ b/sys/netbt/hci_link.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hci_link.c,v 1.2 2007/06/01 02:46:11 uwe Exp $ */ +/* $OpenBSD: hci_link.c,v 1.3 2007/06/06 18:32:55 uwe Exp $ */ /* $NetBSD: hci_link.c,v 1.11 2007/04/21 06:15:23 plunky Exp $ */ /*- @@ -544,6 +544,7 @@ hci_acl_send(struct mbuf *m, struct hci_link *link, if (pdu == NULL) goto nomem; + bzero(pdu, sizeof *pdu); pdu->lp_chan = chan; pdu->lp_pending = 0; |