diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2017-04-20 18:40:37 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-06-18 17:50:08 +0200 |
commit | e3aca93630e7a4572bd0459115b25348e1840c0e (patch) | |
tree | b4758b1165e0cdd85931269f1eb771948a7f3974 /openbsc/src/libmsc/msc_ifaces.c | |
parent | 0923fc6707ea35776ad8c37a6d490ac3408dd274 (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.
Diffstat (limited to 'openbsc/src/libmsc/msc_ifaces.c')
0 files changed, 0 insertions, 0 deletions