diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2010-07-07 00:39:06 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-07-08 14:27:33 -0500 |
commit | c4519941394b2fce3d4ef276a51459561f2e14e1 (patch) | |
tree | c1b290a025846c6b3aaaa96f3363403bc198baf7 /src | |
parent | 23c5f28569f7f65de11d4227f60cb7bb3f9eeb62 (diff) | |
download | ofono-c4519941394b2fce3d4ef276a51459561f2e14e1.tar.bz2 |
sktutil: Use the Mandatory flag in parse_dataobj.
We need to look at the Mandatory flag and not at the Minimum flag
when parsing CTLVs. The Minimum flag is important when encoding CTLVs
because CR bit is set according to it.
Diffstat (limited to 'src')
-rw-r--r-- | src/stkutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stkutil.c b/src/stkutil.c index e92add31..d2cd126a 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -2324,8 +2324,8 @@ static enum stk_command_parse_result parse_dataobj( if (comprehension_tlv_iter_get_tag(iter) == entry->type) break; - /* Can't skip over Minimum objects */ - if (entry->flags & DATAOBJ_FLAG_MINIMUM) { + /* Can't skip over mandatory objects */ + if (entry->flags & DATAOBJ_FLAG_MANDATORY) { l2 = NULL; break; } @@ -2352,7 +2352,7 @@ static enum stk_command_parse_result parse_dataobj( for (; l; l = l->next) { struct dataobj_handler_entry *entry = l->data; - if (entry->flags & DATAOBJ_FLAG_MINIMUM) + if (entry->flags & DATAOBJ_FLAG_MANDATORY) minimum_set = FALSE; } |