From c596d85afd41c2512ef77a10a9d6b40f4836c386 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 8 May 2011 12:55:41 +0200 Subject: s4-interfaces: keep interfaces in the order they were declared the spoolss notify test depends on the interfaces order Pair-Programmed-With: Andrew Bartlett Autobuild-User: Andrew Tridgell Autobuild-Date: Sun May 8 13:57:58 CEST 2011 on sn-devel-104 --- source4/lib/socket/interface.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/lib') 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); } /** -- cgit