aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bsc_msc_ip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c
index 48fd261a0..6b8441c89 100644
--- a/openbsc/src/bsc_msc_ip.c
+++ b/openbsc/src/bsc_msc_ip.c
@@ -88,7 +88,8 @@ void bss_sccp_free_data(struct bss_sccp_connection_data *data)
{
bsc_del_timer(&data->T10);
bsc_del_timer(&data->sccp_it);
- bsc_free_queued(data->sccp);
+ if (data->sccp)
+ bsc_free_queued(data->sccp);
bts_free_queued(data);
llist_del(&data->active_connections);
talloc_free(data);