diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2017-04-20 18:40:37 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-05-08 15:19:20 +0200 |
commit | 316b977d903fab9c35b9969a350ae7b841da1222 (patch) | |
tree | abaa5df8a507095f76e8617a27b7e10ba38813bf /openbsc/src/libmsc/msc_ifaces.c | |
parent | 618aeed27b9566a5b559396baa02e8f4b6c97c5c (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