summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-04-05 00:28:38 +0200
committerHarald Welte <laforge@gnumonks.org>2012-04-05 00:28:38 +0200
commit3e071446be9d435d867bac29b70096b810946444 (patch)
tree301d6a8f53fe9b34e86648cce0e5cb469374150c
parent1c72bfb2cb00e8e677700643bdefadbb9509b496 (diff)
lapdm: fix RSL message format in RLL ERROR INDICATION
In rsl_rll_error() we don't need to re-set the msg->l2h as that would corrupt the message. The recipient would interpret any cause value as 0.
-rw-r--r--src/gsm/lapdm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c
index e9ce881b..e0b79433 100644
--- a/src/gsm/lapdm.c
+++ b/src/gsm/lapdm.c
@@ -391,7 +391,6 @@ static int rsl_rll_error(uint8_t cause, struct lapdm_msg_ctx *mctx)
LOGP(DLLAPD, LOGL_NOTICE, "sending MDL-ERROR-IND %d\n", cause);
msg = rsl_rll_simple(RSL_MT_ERROR_IND, mctx->chan_nr, mctx->link_id, 1);
- msg->l2h = msgb_put(msg, sizeof(struct abis_rsl_rll_hdr));
msgb_tlv_put(msg, RSL_IE_RLM_CAUSE, 1, &cause);
return rslms_sendmsg(msg, mctx->dl->entity);
}