stkutil: item objects can be NULL

ETSI 102.223 doesn't mention that alpha id objects can be NULL, however
such objects exist in the 102.384 test specification.
This commit is contained in:
Yang Gu 2010-05-13 18:48:19 +08:00 committed by Denis Kenzior
parent edcd03e570
commit 9f3b2de6f0
1 changed files with 5 additions and 1 deletions

View File

@ -373,7 +373,11 @@ static gboolean parse_dataobj_item(struct comprehension_tlv_iter *iter,
char *utf8;
len = comprehension_tlv_iter_get_length(iter);
if (len < 2)
if (len == 0)
return TRUE;
if (len == 1)
return FALSE;
data = comprehension_tlv_iter_get_data(iter);