aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-05 17:16:30 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-05 17:16:30 +0200
commit6446ded81c2e02e862eefd3f4cba319c711ebf75 (patch)
tree1b359d22962a9f1a773df51d7bc90894c13ef224
parent7b8f6064d637d48ac2ca80036c310f7960f71784 (diff)
bsc_msc_ip: Verify that the sccp connection is present.
The SCCP might have been freed by the error case already so we need to check this one for zero.
-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);