aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmsc/a_iface.c
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-04-20 18:40:37 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-12 23:42:45 +0200
commitfd6ce2270ba6757efd158854a64600448a3e3c8c (patch)
treebecf039f33c268438abd8ded23df4f233e2f2d00 /src/libmsc/a_iface.c
parentbc3c004c49558a1c6c06c083b483980f963d3be2 (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