]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
fixed we_are_multihomed() to cope with dynamic interfaces (ie. don't
authorAndrew Tridgell <tridge@samba.org>
Wed, 26 Jun 2002 07:23:00 +0000 (07:23 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 26 Jun 2002 07:23:00 +0000 (07:23 +0000)
cache the result!)

source/lib/interface.c

index d43001342e72b80fa07c69cd56232f5ec1ed3c3d..8a59c3389e61d96ad858cfc69d0a6c199ec309f9 100644 (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);
 }
 
 /****************************************************************************