dect
/
libdect
Archived
13
0
Fork 0

sfmt: fix parsing of <<REPEAT-INDICATOR>> IEs

The address of the destination element is calculated incorrectly,
the passed IE double pointer points directly to the dect_ie_list
and not to the container.

Signed-off-by: Patrick MCHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2011-05-05 22:42:35 +02:00
parent b0de27b43d
commit 7b76f999c8
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ static int dect_sfmt_parse_repeat_indicator(const struct dect_handle *dh,
struct dect_ie_common **ie,
const struct dect_sfmt_ie *src)
{
struct dect_ie_list *dst = dect_ie_container(dst, *ie);
struct dect_ie_list *dst = (struct dect_ie_list *)ie;
dst->type = src->data[0] & DECT_SFMT_IE_FIXED_VAL_MASK;
switch (dst->type) {