aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat_utils.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-22 12:05:23 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-22 12:13:44 +0800
commit7e3724ad18119967cd0fbaaee601d3e0d06e5ad4 (patch)
treed2eccde0b106a947ec873d495d00f559fba6281b /openbsc/src/nat/bsc_nat_utils.c
parent569dccf947b36205d9cc156c231016005b277cdb (diff)
nat: Move the write queue init to the allocation function
This is required for unit tests that want to queue messages and see if we can provoke a memleak.
Diffstat (limited to 'openbsc/src/nat/bsc_nat_utils.c')
-rw-r--r--openbsc/src/nat/bsc_nat_utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c
index a2078d005..d9fceaf8f 100644
--- a/openbsc/src/nat/bsc_nat_utils.c
+++ b/openbsc/src/nat/bsc_nat_utils.c
@@ -70,6 +70,7 @@ struct bsc_connection *bsc_connection_alloc(struct bsc_nat *nat)
return NULL;
con->nat = nat;
+ write_queue_init(&con->write_queue, 100);
return con;
}