aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-01-13 09:51:23 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-01-13 09:51:23 +0100
commit7ce2e0c8b08b9b569fb01be8fbfa836bf94fb6e8 (patch)
tree8e24fd4813c8c448f9e2d2f9e4c4e0a963df5ca3
parent78d442420bd75783361abad0ded2ac146b38f73f (diff)
[nat] Unregister the fd before leaving..
-rw-r--r--openbsc/src/nat/bsc_nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 8dd42dc31..179923605 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -150,6 +150,7 @@ static int ipaccess_msc_cb(struct bsc_fd *bfd, unsigned int what)
*/
static void remove_bsc_connection(struct bsc_connection *connection)
{
+ bsc_unregister_fd(&connection->bsc_fd);
llist_del(&connection->list_entry);
talloc_free(connection);
}