aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-18 02:30:57 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-18 02:40:33 +0800
commita7c144888d5d815eb6a928d180df1b37c626a1c5 (patch)
treefe503bfac200e7dc47c4b4eadf9d129b21e4cfb0 /openbsc
parent7897c4446b8f4a1731f4a8755b51f2567f8cb22a (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')
-rw-r--r--openbsc/tests/bsc-nat/bsc_nat_test.c1
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 d97a49194..1712ff6f0 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 */