summaryrefslogtreecommitdiff
path: root/android/socket.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-02-12 16:13:16 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-02-12 15:23:22 +0100
commita6d0df89507bdffad82b4f769c7ee483861f712e (patch)
tree3ebe908087123cefb77c0d0bac49db5da4c349c7 /android/socket.c
parent71f668138263919070ef71e124d79c9b97f16649 (diff)
downloadbluez-a6d0df89507bdffad82b4f769c7ee483861f712e.tar.gz
android/socket: Fix wrong memory access
This fixes accessing proto[2] in the code.
Diffstat (limited to 'android/socket.c')
-rw-r--r--android/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/socket.c b/android/socket.c
index c62ca61cd..1551e9b93 100644
--- a/android/socket.c
+++ b/android/socket.c
@@ -190,7 +190,7 @@ static sdp_record_t *create_rfcomm_record(uint8_t chan, uuid_t *uuid,
{
sdp_list_t *svclass_id;
sdp_list_t *seq, *proto_seq, *pbg_seq;
- sdp_list_t *proto[2];
+ sdp_list_t *proto[3];
uuid_t l2cap_uuid, rfcomm_uuid, obex_uuid, pbg_uuid;
sdp_data_t *channel;
sdp_record_t *record;