From e6372a2c247d9882fe915fd34252d9fbd5b78adf Mon Sep 17 00:00:00 2001 From: Igor Almeida Date: Thu, 21 Aug 2014 00:30:22 -0300 Subject: layer23: initialize l2h/l3h pointers in rx_l1_rach_conf Signed-off-by: Igor Almeida Signed-off-by: Sylvain Munaut --- src/host/layer23/src/common/l1ctl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/host/layer23/src/common/l1ctl.c b/src/host/layer23/src/common/l1ctl.c index 91bab897..c75872e4 100644 --- a/src/host/layer23/src/common/l1ctl.c +++ b/src/host/layer23/src/common/l1ctl.c @@ -148,6 +148,7 @@ static int rx_l1_rach_conf(struct osmocom_ms *ms, struct msgb *msg) } dl = (struct l1ctl_info_dl *) msg->l1h; + msg->l2h = msg->l3h = dl->payload; osmo_prim_init(&pp.oph, SAP_GSM_PH, PRIM_PH_RACH, PRIM_OP_CONFIRM, msg); -- cgit v1.2.3