From a7c144888d5d815eb6a928d180df1b37c626a1c5 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 18 Apr 2010 02:30:57 +0800 Subject: 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. --- openbsc/tests/bsc-nat/bsc_nat_test.c | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc') 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 */ -- cgit v1.2.3