summaryrefslogtreecommitdiff
path: root/source3/lib/interface.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-06-26 07:23:00 +0000
committerAndrew Tridgell <tridge@samba.org>2002-06-26 07:23:00 +0000
commit0dd78fbd7d2ce45f9158f6732c87859406751324 (patch)
treeaab369cf82efbc612c739adf5b072e4a83180821 /source3/lib/interface.c
parent07f35f68e00b48ad6ec4d18c628d0bb57bad85ef (diff)
downloadsamba-0dd78fbd7d2ce45f9158f6732c87859406751324.tar.gz
samba-0dd78fbd7d2ce45f9158f6732c87859406751324.tar.bz2
samba-0dd78fbd7d2ce45f9158f6732c87859406751324.zip
fixed we_are_multihomed() to cope with dynamic interfaces (ie. don't
cache the result!) (This used to be commit fc8aa198b16da24b68e45982eb45dd7d5fd089e1)
Diffstat (limited to 'source3/lib/interface.c')
-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);
}
/****************************************************************************