mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
fixed we_are_multihomed() to cope with dynamic interfaces (ie. don't
cache the result!)
This commit is contained in:
parent
a049360d5b
commit
fc8aa198b1
@ -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);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user