From: Vincent Bernat Date: Thu, 1 Oct 2009 20:16:25 +0000 (+0200) Subject: Fix file descriptor leak when enabling "listen on VLAN" feature X-Git-Tag: 0.5.0~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2bd9c1c9006930da106982d2fec95f555d04ff19;p=thirdparty%2Flldpd.git Fix file descriptor leak when enabling "listen on VLAN" feature The VLAN list was always reinitialized... --- diff --git a/src/interfaces.c b/src/interfaces.c index 57a7ed52..8d714dbd 100644 --- a/src/interfaces.c +++ b/src/interfaces.c @@ -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