|
From: Anders J. <and...@us...> - 2003-03-29 18:44:57
|
The following file was modified in apps/bluetooth/sdp_server:
Name Old version New version Tag Comment
---- ----------- ----------- --- -------
sdp_server.c 1.32 1.33=20=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Corrected read of the attribute-list.
The diff of the modified file(s):
--- sdp_server.c 7 Mar 2002 21:23:19 -0000 1.32
+++ sdp_server.c 29 Mar 2003 18:44:56 -0000 1.33
@@ -723,14 +723,14 @@
return_sequence[pos++] =3D 0;
=20=20=20
/* Find the first attribute in the range */
- while ((i < attr_lst[0]) && (attr_lst[i] < (attr_id_code >> 16)))
+ while ((i <=3D attr_lst[0]) && (attr_lst[i] < (attr_id_code >> 16)))
{
i++;
}
D_ATTR("attr_lst[0]: %d, attr_id_code: 0x%04x",
attr_lst[0], attr_id_code);
=20=20=20
- while ((i < attr_lst[0]) && (attr_lst[i] <=3D (attr_id_code & 0xffff)))
+ while ((i <=3D attr_lst[0]) && (attr_lst[i] <=3D (attr_id_code & 0xffff)=
))
{
D_REC("attr_lst[%d]: 0x%04x", i, attr_lst[i]);
/* we mask the attribute her so we don't by misstake send a range as
|