1
0
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:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent a049360d5b
commit fc8aa198b1

View File

@ -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);
}
/****************************************************************************