mirror of git://git.sysmocom.de/ofono
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:
parent
edcd03e570
commit
9f3b2de6f0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue