stkutil: Make sure bc_repeat is used properly

The wrong structure was being used in the function & the has_bc_repeat
variable was not being set properly.
This commit is contained in:
Denis Kenzior 2010-06-16 17:26:33 -05:00
parent dc505be373
commit 97e62dffde
1 changed files with 7 additions and 2 deletions

View File

@ -1069,8 +1069,13 @@ static gboolean parse_dataobj_at_response(struct comprehension_tlv_iter *iter,
static gboolean parse_dataobj_bc_repeat_indicator(
struct comprehension_tlv_iter *iter, void *user)
{
unsigned char *byte = user;
return parse_dataobj_common_byte(iter, byte);
struct stk_bc_repeat *bc_repeat = user;
if (parse_dataobj_common_byte(iter, &bc_repeat->value) != TRUE)
return FALSE;
bc_repeat->has_bc_repeat = TRUE;
return TRUE;
}
/* Defined in 102.223 Section 8.43 */