diff options
author | 2007-06-06 18:32:55 +0000 | |
---|---|---|
committer | 2007-06-06 18:32:55 +0000 | |
commit | 39e4d9b0604f104769eed38b3a922ee45442e4db (patch) | |
tree | 5d6f3a8e74b21792a5ea67527d53bb4f3b4776b7 | |
parent | fix firmware number in description (the package name was ok.) (diff) | |
download | wireguard-openbsd-39e4d9b0604f104769eed38b3a922ee45442e4db.tar.xz wireguard-openbsd-39e4d9b0604f104769eed38b3a922ee45442e4db.zip |
Do not dereference a garbage pointer in hci_acl_send()
testing ckuethe
-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; |