nat: Add both entries to the tail to keep the order they are inserted

This commit is contained in:
Holger Hans Peter Freyther 2010-06-08 11:00:09 +08:00
parent d77c8171aa
commit 26c3a358d6
1 changed files with 2 additions and 2 deletions

View File

@ -468,7 +468,7 @@ struct bsc_nat_acc_lst *bsc_nat_acc_lst_get(struct bsc_nat *nat, const char *nam
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 @@ struct bsc_nat_acc_lst_entry *bsc_nat_acc_lst_entry_create(struct bsc_nat_acc_ls
if (!entry)
return NULL;
llist_add(&entry->list, &lst->fltr_list);
llist_add_tail(&entry->list, &lst->fltr_list);
return entry;
}