stkutil: add one more sanity check

This commit is contained in:
Denis Kenzior 2011-03-31 14:00:49 -05:00
parent c79c3c0e54
commit f58c3614aa
1 changed files with 1 additions and 1 deletions

View File

@ -1646,7 +1646,7 @@ static gboolean parse_dataobj_network_access_name(
while (len) {
label_size = *data;
if (label_size > (len - 1))
if (label_size == 0 || label_size > (len - 1))
return FALSE;
memcpy(decoded_apn + offset, data + 1, label_size);