From 83ff9da4fd48d92961146519dc88b6d066863277 Mon Sep 17 00:00:00 2001 From: Uwe Stuehler Date: Wed, 6 Jun 2007 18:32:56 +0000 Subject: Do not dereference a garbage pointer in hci_acl_send() testing ckuethe --- sys/netbt/hci_link.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') 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; -- cgit v1.2.3