summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-13 17:43:38 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-13 17:43:38 +0200
commitb5e64e37e108d782ad9496873fcdc579e5a4dc60 (patch)
treef3b7212b302574b884a6e71ebf0c8f9a55078a0f /lib
parent02dfef80d0ece21ab3a1028258aca55fb657c36d (diff)
Fix uninitialized memory issue
Diffstat (limited to 'lib')
-rw-r--r--lib/sdp.c2
1 files changed, 2 insertions, 0 deletions
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;