]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpd: on exit, remove remote ports before removing local ones
authorVincent Bernat <bernat@luffy.cx>
Tue, 1 May 2012 09:09:15 +0000 (11:09 +0200)
committerVincent Bernat <bernat@luffy.cx>
Tue, 1 May 2012 09:09:15 +0000 (11:09 +0200)
src/lldpd.c

index 8144da458d734031e507ba316dcd3e99781b8017..5c935fcc9feba692a49b7904ea40f366e1809322 100644 (file)
@@ -1125,6 +1125,7 @@ lldpd_exit()
        for (hardware = TAILQ_FIRST(&gcfg->g_hardware); hardware != NULL;
             hardware = hardware_next) {
                hardware_next = TAILQ_NEXT(hardware, h_entries);
+               lldpd_remote_cleanup(gcfg, hardware, 1);
                lldpd_hardware_cleanup(gcfg, hardware);
        }
 #ifdef USE_SNMP