]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Fix file descriptor leak when enabling "listen on VLAN" feature
authorVincent Bernat <bernat@luffy.cx>
Thu, 1 Oct 2009 20:16:25 +0000 (22:16 +0200)
committerVincent Bernat <bernat@luffy.cx>
Thu, 1 Oct 2009 20:16:25 +0000 (22:16 +0200)
The VLAN list was always reinitialized...

src/interfaces.c

index 57a7ed521533dc2bad6639668578704269887a4b..8d714dbd3f24120128f11fb71ae9ed4429d3809f 100644 (file)
@@ -932,6 +932,7 @@ _iface_vlan_setup()
        static int done = 0;
        if (done) return;
        TAILQ_INIT(&ifvls);
+       done = 1;
 }
 
 /* Close the list of VLAN associated to the given hardware port if we have