From: Andrew Tridgell Date: Wed, 26 Jun 2002 07:23:00 +0000 (+0000) Subject: fixed we_are_multihomed() to cope with dynamic interfaces (ie. don't X-Git-Tag: samba-3.0.0alpha18~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc8aa198b16da24b68e45982eb45dd7d5fd089e1;p=thirdparty%2Fsamba.git fixed we_are_multihomed() to cope with dynamic interfaces (ie. don't cache the result!) --- diff --git a/source/lib/interface.c b/source/lib/interface.c index d43001342e7..8a59c3389e6 100644 --- a/source/lib/interface.c +++ b/source/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); } /****************************************************************************