]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
When refreshing port information, clean up existing information!
authorVincent Bernat <vbernat.ext@orange-ftgroup.com>
Fri, 27 Feb 2009 13:16:19 +0000 (14:16 +0100)
committerVincent Bernat <vbernat.ext@orange-ftgroup.com>
Fri, 27 Feb 2009 13:16:19 +0000 (14:16 +0100)
src/lldpd.c

index cfeb831782cf31cbd01b5726abc639c55365804d..3b5468218a126f1977c7e34fc50409dc0b62619b 100644 (file)
@@ -557,7 +557,7 @@ lldpd_port_add(struct lldpd *cfg, struct ifaddrs *ifa)
 #ifdef ENABLE_DOT1
                TAILQ_INIT(&hardware->h_lport.p_vlans);
        } else {
-               lldpd_vlan_cleanup(&hardware->h_lport);
+               lldpd_port_cleanup(&hardware->h_lport);
 #endif
        }