diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2017-04-20 18:40:37 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-07-12 23:42:45 +0200 |
commit | fd6ce2270ba6757efd158854a64600448a3e3c8c (patch) | |
tree | becf039f33c268438abd8ded23df4f233e2f2d00 /src/libmsc/a_iface.c | |
parent | bc3c004c49558a1c6c06c083b483980f963d3be2 (diff) |
libmsc: make pitfall in gsm0408_dispatch() more obvious
The function gsm0408_dispatch() accepts a message buffer pointer
and accesses the l3h pointer. Even in a properly allocated
message buffer, this may lead into a segfault if the user forgets
to set the l3h pointer. This commit adds assertions to popup a
more expressive error message.
Change-Id: I43bd9bd1c170559aaa8dacaef25dba090744bcd5
Diffstat (limited to 'src/libmsc/a_iface.c')
0 files changed, 0 insertions, 0 deletions