abis_rsl: use msgb_pull to parse tlli from msg

Change-Id: I971bf6c8821689f9d8a1294a9b3bf1af9c4091f7
This commit is contained in:
Alexander Couzens 2017-03-13 11:06:52 +01:00 committed by Harald Welte
parent 2faeb1ac6c
commit 271ceca862
1 changed files with 2 additions and 4 deletions

View File

@ -2023,10 +2023,8 @@ static int abis_rsl_rx_cchan(struct msgb *msg)
else if(msg->data[4] != 0xf1)
LOGP(DRSL, LOGL_ERROR, "unsupported IMM.ass message format! (please fix)\n");
else {
tlli = msg->data[8];
tlli |= msg->data[7] << 8;
tlli |= msg->data[6] << 16;
tlli |= msg->data[5] << 24;
msgb_pull(msg, 5); /* drop previous data to use msg_pull_u32 */
tlli = msgb_pull_u32(msg);
pcu_tx_imm_ass_sent(sign_link->trx->bts, tlli);
}
break;