diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-18 02:30:57 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-15 20:24:14 +0800 |
commit | c87c8b748e0fe93c7761ef3fac456de6dadf8a37 (patch) | |
tree | 143251a26778dba5f08a54f92286d0852f9d7130 /openbsc/tests | |
parent | 08a1b16674038fc7e601f55238d51128d56fa247 (diff) |
nat: Fix the test case by allocating a config.
For the statistics we do need to have an allocated config,
otherwise we will nicely crash.
Diffstat (limited to 'openbsc/tests')
-rw-r--r-- | openbsc/tests/bsc-nat/bsc_nat_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c index e547ee479..aabc1304a 100644 --- a/openbsc/tests/bsc-nat/bsc_nat_test.c +++ b/openbsc/tests/bsc-nat/bsc_nat_test.c @@ -242,6 +242,7 @@ static void test_contrack() fprintf(stderr, "Testing connection tracking.\n"); nat = bsc_nat_alloc(); con = bsc_connection_alloc(nat); + con->cfg = bsc_config_alloc(nat, "foo", 23); msg = msgb_alloc(4096, "test"); /* 1.) create a connection */ |