diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-06-26 07:23:00 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-06-26 07:23:00 +0000 |
commit | 0dd78fbd7d2ce45f9158f6732c87859406751324 (patch) | |
tree | aab369cf82efbc612c739adf5b072e4a83180821 /source3/lib | |
parent | 07f35f68e00b48ad6ec4d18c628d0bb57bad85ef (diff) | |
download | samba-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')
-rw-r--r-- | source3/lib/interface.c | 7 |
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); } /**************************************************************************** |