From 97e62dffdebdd54896642ce0d5293236539ed08f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 16 Jun 2010 17:26:33 -0500 Subject: [PATCH] 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. --- src/stkutil.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/stkutil.c b/src/stkutil.c index 79f8d92d..44a8effa 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -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 */