diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-05 10:08:36 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-05 19:17:25 +0800 |
commit | d5e6c2374b3c20ed5bc2eaf12c0038633f8b27c8 (patch) | |
tree | 31a535aed8927f4b848a4e5e08f215ec8dd9b5d7 /openbsc/src/nat/bsc_nat.c | |
parent | f138f917ec7b535e0d71b8e70c71be7816e572da (diff) |
nat: Use the mgcp_config_alloc to have defaults initialized
Initialize the net_base properly and benefit from future
config changes but also reset certain defauls that we do
not want at the nat.
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index e5c2c39ac..9cf3ba32f 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -1120,7 +1120,7 @@ int main(int argc, char** argv) return -4; } - nat->mgcp_cfg = talloc_zero(nat, struct mgcp_config); + nat->mgcp_cfg = mgcp_config_alloc(); if (!nat->mgcp_cfg) { fprintf(stderr, "Failed to allocate MGCP cfg.\n"); return -5; |