summaryrefslogtreecommitdiffstats
path: root/stack/sdp/sdp_server.c
diff options
context:
space:
mode:
authorGanesh Ganapathi Batta <ganeshg@broadcom.com>2013-02-05 15:22:31 -0800
committerMatthew Xie <mattx@google.com>2013-02-27 18:15:49 -0800
commitead3cde4bac0c3e32cd31f149093f004eef8ceeb (patch)
treef45b52e375e1a80e807dbbc864bb1da603965b0d /stack/sdp/sdp_server.c
parente17bf003d4eefdc8525e55894210e9ee494972b8 (diff)
downloadandroid_system_bt-ead3cde4bac0c3e32cd31f149093f004eef8ceeb.tar.gz
android_system_bt-ead3cde4bac0c3e32cd31f149093f004eef8ceeb.tar.bz2
android_system_bt-ead3cde4bac0c3e32cd31f149093f004eef8ceeb.zip
Initial version of BLE support for Bluedroid
Change-Id: I9825a5cef9be2559c34c2a529b211b7d471147cf
Diffstat (limited to 'stack/sdp/sdp_server.c')
-rw-r--r--stack/sdp/sdp_server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stack/sdp/sdp_server.c b/stack/sdp/sdp_server.c
index 5736b8dea..342d93e7a 100644
--- a/stack/sdp/sdp_server.c
+++ b/stack/sdp/sdp_server.c
@@ -173,7 +173,7 @@ static void process_service_search (tCONN_CB *p_ccb, UINT16 trans_num,
tSDP_UUID_SEQ uid_seq;
UINT8 *p_rsp, *p_rsp_start, *p_rsp_param_len;
UINT16 rsp_param_len, num_rsp_handles, xx;
- UINT32 rsp_handles[SDP_MAX_RECORDS];
+ UINT32 rsp_handles[SDP_MAX_RECORDS] = {0};
tSDP_RECORD *p_rec = NULL;
BT_HDR *p_buf;
BOOLEAN is_cont = FALSE;
@@ -430,7 +430,7 @@ static void process_service_attr_req (tCONN_CB *p_ccb, UINT16 trans_num,
}
else if (rem_len < attr_len) /* Not enough space for attr... so add partially */
{
- if (attr_len >= MAX_ATTR_LEN)
+ if (attr_len >= SDP_MAX_ATTR_LEN)
{
SDP_TRACE_ERROR2("SDP attr too big: max_list_len=%d,attr_len=%d", max_list_len, attr_len);
sdpu_build_n_send_error (p_ccb, trans_num, SDP_NO_RESOURCES, NULL);
@@ -697,7 +697,7 @@ static void process_service_search_attr_req (tCONN_CB *p_ccb, UINT16 trans_num,
}
else if (rem_len < attr_len) /* Not enough space for attr... so add partially */
{
- if (attr_len >= MAX_ATTR_LEN)
+ if (attr_len >= SDP_MAX_ATTR_LEN)
{
SDP_TRACE_ERROR2("SDP attr too big: max_list_len=%d,attr_len=%d", max_list_len, attr_len);
sdpu_build_n_send_error (p_ccb, trans_num, SDP_NO_RESOURCES, NULL);