nat: Add both entries to the tail to keep the order they are inserted
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c
index 5bb8fb9..9fc057d 100644
--- a/openbsc/src/nat/bsc_nat_utils.c
+++ b/openbsc/src/nat/bsc_nat_utils.c
@@ -468,7 +468,7 @@
INIT_LLIST_HEAD(&lst->fltr_list);
lst->name = talloc_strdup(lst, name);
- llist_add(&lst->list, &nat->access_lists);
+ llist_add_tail(&lst->list, &nat->access_lists);
return lst;
}
@@ -486,6 +486,6 @@
if (!entry)
return NULL;
- llist_add(&entry->list, &lst->fltr_list);
+ llist_add_tail(&entry->list, &lst->fltr_list);
return entry;
}
\ No newline at end of file