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:
parent
b0de27b43d
commit
7b76f999c8
|
@ -52,7 +52,7 @@ static int dect_sfmt_parse_repeat_indicator(const struct dect_handle *dh,
|
||||||
struct dect_ie_common **ie,
|
struct dect_ie_common **ie,
|
||||||
const struct dect_sfmt_ie *src)
|
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;
|
dst->type = src->data[0] & DECT_SFMT_IE_FIXED_VAL_MASK;
|
||||||
switch (dst->type) {
|
switch (dst->type) {
|
||||||
|
|
Reference in New Issue