aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-05-12 00:35:07 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-05-12 00:35:07 +0800
commitd76b53c00ee96d7d47e535ce0283c6379348009a (patch)
treea2ec43b8c5803295fe64988301802209eaf74fd4
parent9c9ef7796aa6848529a7f2c06928f5efc46b07ed (diff)
nat: When we fail to reallocate... also close down the MGCP part
Give the BSC a chanche to close down MGCP ports as well.
-rw-r--r--openbsc/src/nat/bsc_sccp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_sccp.c b/openbsc/src/nat/bsc_sccp.c
index f9ddd64fb..f117ad186 100644
--- a/openbsc/src/nat/bsc_sccp.c
+++ b/openbsc/src/nat/bsc_sccp.c
@@ -98,6 +98,7 @@ int create_sccp_src_ref(struct bsc_connection *bsc, struct msgb *msg, struct bsc
if (assign_src_local_reference(&conn->patched_ref, bsc->nat) != 0) {
LOGP(DNAT, LOGL_ERROR, "BSC %d reused src ref: %d and we failed to generate a new id.\n",
bsc->cfg->nr, sccp_src_ref_to_int(parsed->src_local_ref));
+ bsc_mgcp_dlcx(conn);
llist_del(&conn->list_entry);
talloc_free(conn);
return -1;