diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-13 17:43:38 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-13 17:43:38 +0200 |
commit | b5e64e37e108d782ad9496873fcdc579e5a4dc60 (patch) | |
tree | f3b7212b302574b884a6e71ebf0c8f9a55078a0f /lib | |
parent | 02dfef80d0ece21ab3a1028258aca55fb657c36d (diff) |
Fix uninitialized memory issue
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sdp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |