From b5e64e37e108d782ad9496873fcdc579e5a4dc60 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 13 Feb 2009 17:43:38 +0200 Subject: Fix uninitialized memory issue --- lib/sdp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/sdp.c b/lib/sdp.c index 72383c0d..896c5eb9 100644 --- a/lib/sdp.c +++ b/lib/sdp.c @@ -4390,6 +4390,8 @@ static int sdp_connect_l2cap(const bdaddr_t *src, fcntl(sk, F_SETFL, arg | O_NONBLOCK); } + memset(&sa, 0, sizeof(sa)); + sa.l2_family = AF_BLUETOOTH; sa.l2_psm = 0; -- cgit