diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-05-08 12:55:41 +0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-05-08 13:57:58 +0200 |
commit | c596d85afd41c2512ef77a10a9d6b40f4836c386 (patch) | |
tree | e580643160cb44be4587688872d22ad09564cfc2 | |
parent | 64adea3d857ac7fcfb86264e877e96a08c7b5aa0 (diff) | |
download | samba-c596d85afd41c2512ef77a10a9d6b40f4836c386.tar.gz samba-c596d85afd41c2512ef77a10a9d6b40f4836c386.tar.bz2 samba-c596d85afd41c2512ef77a10a9d6b40f4836c386.zip |
s4-interfaces: keep interfaces in the order they were declared
the spoolss notify test depends on the interfaces order
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sun May 8 13:57:58 CEST 2011 on sn-devel-104
-rw-r--r-- | source4/lib/socket/interface.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/socket/interface.c b/source4/lib/socket/interface.c index 4eb4f3a517..b762f5573a 100644 --- a/source4/lib/socket/interface.c +++ b/source4/lib/socket/interface.c @@ -129,7 +129,11 @@ static void add_interface(TALLOC_CTX *mem_ctx, const struct iface_struct *ifs, s DEBUG(2,("netmask=%s\n", addr)); iface->nmask_s = talloc_strdup(iface, addr); - DLIST_ADD(*interfaces, iface); + /* + this needs to be a ADD_END, as some tests (such as the + spoolss notify test) depend on the interfaces ordering + */ + DLIST_ADD_END(*interfaces, iface, NULL); } /** |