osmocom-bb/src/host/layer23/src/common
Vadim Yanitskiy d02927b036 layer23/l1ctl.c: fix: verify msg length using l1h, not l2h
The actual L1CTL header is pointed by 'msg->l1h', not 'l2h'!
Since msg->l2h is NULL (because nobody set it), the result of
msgb_l2len() would always be bigger than size of L1CTL header,
as it is calculated in the following way:

  return msgb->tail - (uint8_t *)msgb_l2(msgb);

So, in case if 'msg->l2h' is NULL, it turns into:

  return msgb->tail - 0;

Change-Id: I7fe2e00bb45ba07c9bb7438445eededfa09c96f3
2018-10-03 19:21:58 +07:00
..
Makefile.am Move from libc random() to osmo_get_rand_id (2nd attempt) 2018-07-23 20:55:45 +01:00
gps.c host: Add support for the new gpsd API 2012-01-17 08:11:07 +01:00
l1ctl.c layer23/l1ctl.c: fix: verify msg length using l1h, not l2h 2018-10-03 19:21:58 +07:00
l1ctl_lapdm_glue.c host/layer23: Removed local copy of LAPDm, using libosmocore instad 2011-11-13 20:25:19 +01:00
l1l2_interface.c layer23: Use osmo_sock_unix_init_ofd() from libosmocore 2018-09-06 16:16:07 +02:00
logging.c mobile: Add LUA as debug category to the applications 2017-12-03 12:58:52 +00:00
main.c host/mobile: use talloc for ms->name allocation 2017-05-25 11:43:49 +00:00
networks.c layer23/mobile: Fixed variable type, so home network is detected correctly 2012-01-02 02:10:54 +01:00
sap_interface.c layer23: Use osmo_sock_unix_init_ofd() from libosmocore 2018-09-06 16:16:07 +02:00
sim.c host/mobile: use osmocom_ms as talloc context 2017-11-08 18:46:57 +07:00
sysinfo.c l23 sysinfo: defer SI4 CBCH mobile allocation until SI1 is received 2013-01-02 18:31:30 +01:00
utils.c Move from libc random() to osmo_get_rand_id (2nd attempt) 2018-07-23 20:55:45 +01:00