summaryrefslogtreecommitdiffstats
path: root/sdpd/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdpd/main.c')
-rw-r--r--sdpd/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sdpd/main.c b/sdpd/main.c
index 0efc7d50..eb59a6fa 100644
--- a/sdpd/main.c
+++ b/sdpd/main.c
@@ -318,6 +318,7 @@ static inline void handle_request(int sk, char *data, int len)
if (sa.l2_family == AF_BLUETOOTH) {
struct l2cap_options lo;
+ memset(&lo, 0, sizeof(lo));
size = sizeof(lo);
getsockopt(sk, SOL_L2CAP, L2CAP_OPTIONS, &lo, &size);
req.bdaddr = sa.l2_bdaddr;