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.
This commit is contained in:
Holger Hans Peter Freyther 2010-04-18 02:30:57 +08:00
parent 08a1b16674
commit c87c8b748e
1 changed files with 1 additions and 0 deletions

View File

@ -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 */