[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:
Sylvain Munaut 2009-09-27 11:13:18 +02:00 committed by Harald Welte
parent 1dcfc00192
commit 82aa6843ba
1 changed files with 1 additions and 1 deletions

View File

@ -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 */