[PATCH] android/socket: Fix wrong memory access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

This fixes accessing proto[2] in the code.
---
 android/socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/socket.c b/android/socket.c
index c62ca61..1551e9b 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;
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux