aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_sccp.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-18 03:07:22 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 20:24:15 +0800
commit7fc9a27bf147f045642a1e6b97519156c17eadea (patch)
treeeb5b547feaefd00a36aea0de71d66dc30eb8fe98 /openbsc/src/nat/bsc_sccp.c
parent317ae72c47c097d24a98e65511fd8b1f35a11be6 (diff)
nat: Do not use 0/0 for mux/timeslot by default
0 is a valid timeslot and we should not use it... use a negative value to be save.
Diffstat (limited to 'openbsc/src/nat/bsc_sccp.c')
-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 3906bc988..33142a910 100644
--- a/openbsc/src/nat/bsc_sccp.c
+++ b/openbsc/src/nat/bsc_sccp.c
@@ -99,6 +99,7 @@ int create_sccp_src_ref(struct bsc_connection *bsc, struct msgb *msg, struct bsc
return -1;
}
+ bsc_mgcp_clear(conn);
llist_add_tail(&conn->list_entry, &bsc->nat->sccp_connections);
counter_inc(bsc->cfg->stats.sccp.conn);
counter_inc(bsc->cfg->nat->stats.sccp.conn);