osmo-msc/openbsc/src/libcommon
Harald Welte 7184bd088e subscr_name(): Handle case for subscr == NULL
subscr_name() was called from several places:
* either without a check for subscr being NULL, which for example
  was causing a segfault if we hand-over a channel before identifying the
  subscriber
* or with an explicit NULL check and the ternary operator (?).

We now simplify the code by checking for the NULL Subscriber in subscr_name()
itself.

Change-Id: Ide09f4a515222eb2ec6c25e7a6a8c5f6cc2ffd4b
Reviewed-on: https://gerrit.osmocom.org/92
Tested-by: Jenkins Builder
Reviewed-by: Holger Freyther <holger@freyther.de>
2016-05-22 11:51:18 +00:00
..
Makefile.am move utils.h functions to libosmocore 2016-04-29 13:10:37 +02:00
bsc_version.c update year in copyright string 2012-06-03 16:58:09 +02:00
common_vty.c vty: Change the return type from enum to int 2015-09-24 15:39:30 +02:00
debug.c filter: Move from DNAT to DFILTER category 2015-05-03 22:03:39 +02:00
gsm_data.c Move DTX settings to BTS 2016-05-17 16:17:54 +00:00
gsm_data_shared.c gsm_data_shared: compute/sprintf the lchan name only once 2015-12-05 16:19:21 +01:00
gsm_subscriber_base.c subscr_name(): Handle case for subscr == NULL 2016-05-22 11:51:18 +00:00
socket.c make sure we still build on systems that don't have IPPROTO_GRE 2012-04-08 15:56:00 +02:00
talloc_ctx.c src: use new library libosmogsm and new path to headers in libosmocore 2011-03-23 18:17:56 +01:00