osmocom-bb/src/host/layer23/src
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
..
common layer23/l1ctl.c: fix: verify msg length using l1h, not l2h 2018-10-03 19:21:58 +07:00
misc layer23/app_ccch_scan.c: omit dummy (fill) frames 2018-10-02 01:54:24 +07:00
mobile lua: Expose API to trigger a network reselection 2018-09-16 13:51:29 +00:00
Makefile.am layer23: Split [1/2] -> The source code 2010-07-27 20:49:04 +02:00