fix attribute list traversal

This commit is contained in:
matthias.ringwald 2010-07-05 20:58:26 +00:00
parent 9974f44821
commit abf7f7c6bf

View File

@ -232,7 +232,7 @@ static void sdp_attribute_list_traverse_sequence(uint8_t * element, sdp_attribut
de_type_t idType = de_get_element_type(element + pos);
de_size_t idSize = de_get_size_type(element + pos);
if (idType != DE_UINT || idSize != DE_SIZE_16) break; // wrong type
uint16_t attribute_id = READ_NET_16(element, 1);
uint16_t attribute_id = READ_NET_16(element, pos + 1);
pos += 3;
if (pos >= end_pos) break; // array out of bounds
de_type_t valueType = de_get_element_type(element + pos);