aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-04 18:11:49 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-04 18:11:49 +0200
commit27e0bfd3c73d5e4017000a775d2a9cadbba3cb65 (patch)
tree8fe77a64d7fe1dc7682924b402519c0b355caae9 /openbsc
parentbbfff6ec39d6499404f1b603da2ee9091b3c899c (diff)
nat: Use a ptr that was allocated by talloc
The endp is part of an array allocated by talloc and simple array members do not qualify as a context start address.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/nat/bsc_mgcp_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c
index 0965f1fe6..164b6f64c 100644
--- a/openbsc/src/nat/bsc_mgcp_utils.c
+++ b/openbsc/src/nat/bsc_mgcp_utils.c
@@ -148,7 +148,7 @@ int bsc_mgcp_policy_cb(struct mgcp_config *cfg, int endpoint, int state, const c
talloc_free(bsc_endp->transaction_id);
}
- bsc_endp->transaction_id = talloc_strdup(bsc_endp, transaction_id);
+ bsc_endp->transaction_id = talloc_strdup(nat, transaction_id);
bsc_endp->bsc = bsc_con;
/* we need to update some bits */