aboutsummaryrefslogtreecommitdiffstats
path: root/src/libbsc/gsm_subscriber_base.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbsc/gsm_subscriber_base.c')
-rw-r--r--src/libbsc/gsm_subscriber_base.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libbsc/gsm_subscriber_base.c b/src/libbsc/gsm_subscriber_base.c
index 747a699f9..ed2dde6c4 100644
--- a/src/libbsc/gsm_subscriber_base.c
+++ b/src/libbsc/gsm_subscriber_base.c
@@ -43,6 +43,8 @@ struct llist_head *subscr_bsc_active_subscribers(void)
char *subscr_name(struct gsm_subscriber *subscr)
{
+ if (!subscr)
+ return "unknown";
if (strlen(subscr->name))
return subscr->name;