aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/msg_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/msg_utils.c')
-rw-r--r--src/common/msg_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/msg_utils.c b/src/common/msg_utils.c
index f00a71ac..393ae908 100644
--- a/src/common/msg_utils.c
+++ b/src/common/msg_utils.c
@@ -260,7 +260,8 @@ static inline bool dtx_sched_optional(struct gsm_lchan *lchan, uint32_t fn)
return fn_chk(f, fn, ARRAY_SIZE(f));
else
return fn_chk(lchan->nr ? h1 : h0, fn,
- ARRAY_SIZE(lchan->nr ? h1 : h0));
+ lchan->nr ? ARRAY_SIZE(h1) :
+ ARRAY_SIZE(h0));
}
return false;
}