mirror of
https://gerrit.osmocom.org/osmo-gbproxy
synced 2024-08-18 08:56:23 +00:00
[abis_rsl] Fix rsl_encryption_cmd L3 length computation
msg->l3h doesn't have any coherent value at that point, can't use that. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
a948c11c76
commit
01f1caf357
1 changed files with 1 additions and 1 deletions
|
@ -655,7 +655,7 @@ int rsl_encryption_cmd(struct msgb *msg)
|
|||
struct gsm_lchan *lchan = msg->lchan;
|
||||
u_int8_t chan_nr = lchan2chan_nr(lchan);
|
||||
u_int8_t encr_info[MAX_A5_KEY_LEN+2];
|
||||
u_int8_t l3_len = msg->tail - (u_int8_t *)msgb_l3(msg);
|
||||
u_int8_t l3_len = msg->len;
|
||||
int rc;
|
||||
|
||||
/* First push the L3 IE tag and length */
|
||||
|
|
Loading…
Reference in a new issue