summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/interface.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/lib/interface.c b/source3/lib/interface.c
index d43001342e..8a59c3389e 100644
--- a/source3/lib/interface.c
+++ b/source3/lib/interface.c
@@ -280,12 +280,7 @@ int iface_count(void)
**************************************************************************/
BOOL we_are_multihomed(void)
{
- static int multi = -1;
-
- if(multi == -1)
- multi = (iface_count() > 1 ? True : False);
-
- return multi;
+ multi = (iface_count() > 1 ? True : False);
}
/****************************************************************************