commit | 0952b2f28f3126afe439e7451b0816cdaf4544ee | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Thu Apr 22 12:05:23 2010 +0800 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Jun 15 20:24:16 2010 +0800 |
tree | 18050550b5972ce4fe1cf2407e2919f87f8f5cd3 | |
parent | 53cd98544c2c2520df7ba323816ec9f02f402492 [diff] [blame] |
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.
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c index 28b1bc7..1365427 100644 --- a/openbsc/src/nat/bsc_nat_utils.c +++ b/openbsc/src/nat/bsc_nat_utils.c
@@ -70,6 +70,7 @@ return NULL; con->nat = nat; + write_queue_init(&con->write_queue, 100); return con; }