diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-29 15:14:15 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-29 15:14:15 +0200 |
commit | 5c0132882ad1c365b4982c62feb77fa31bbd8c49 (patch) | |
tree | 1748ce2be9a64269b367f5baee51f06660a6f73f /openbsc/src | |
parent | ed443e949e997503e71717fb4f9cb754d90fcc28 (diff) |
nat: Assign the connection inside the new helper function.
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 1 | ||||
-rw-r--r-- | openbsc/src/nat/bsc_nat_utils.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index 29fd3ea82..71da5cd54 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -543,7 +543,6 @@ static int ipaccess_listen_bsc_cb(struct bsc_fd *bfd, unsigned int what) return -1; } - bsc->nat = nat; write_queue_init(&bsc->write_queue, 100); bsc->write_queue.bfd.data = bsc; bsc->write_queue.bfd.fd = ret; diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c index a0b7c2f2e..a3242317b 100644 --- a/openbsc/src/nat/bsc_nat_utils.c +++ b/openbsc/src/nat/bsc_nat_utils.c @@ -45,6 +45,7 @@ struct bsc_connection *bsc_connection_alloc(struct bsc_nat *nat) if (!con) return NULL; + con->nat = nat; return con; } |