diff options
Diffstat (limited to 'sys/netbt/rfcomm_session.c')
-rw-r--r-- | sys/netbt/rfcomm_session.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netbt/rfcomm_session.c b/sys/netbt/rfcomm_session.c index f1d88643f54..0852c9f0996 100644 --- a/sys/netbt/rfcomm_session.c +++ b/sys/netbt/rfcomm_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rfcomm_session.c,v 1.1 2007/06/01 02:46:12 uwe Exp $ */ +/* $OpenBSD: rfcomm_session.c,v 1.2 2007/09/17 01:33:33 krw Exp $ */ /* $NetBSD: rfcomm_session.c,v 1.9 2007/04/21 06:15:23 plunky Exp $ */ /*- @@ -174,10 +174,9 @@ rfcomm_session_alloc(struct rfcomm_session_list *list, struct rfcomm_session *rs; int err; - rs = malloc(sizeof(*rs), M_BLUETOOTH, M_NOWAIT); + rs = malloc(sizeof(*rs), M_BLUETOOTH, M_NOWAIT | M_ZERO); if (rs == NULL) return NULL; - bzero(rs, sizeof *rs); rs->rs_state = RFCOMM_SESSION_CLOSED; |