nat: Assign the connection inside the new helper function.

This commit is contained in:
Holger Hans Peter Freyther
2010-03-29 15:14:15 +02:00
parent ed443e949e
commit 5c0132882a
2 changed files with 1 additions and 1 deletions

View File

@@ -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;

View File

@@ -45,6 +45,7 @@ struct bsc_connection *bsc_connection_alloc(struct bsc_nat *nat)
if (!con)
return NULL;
con->nat = nat;
return con;
}