]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Don't try to reset the interface when removing it
authorVincent Bernat <vbernat.ext@orange-ftgroup.com>
Fri, 27 Feb 2009 13:11:48 +0000 (14:11 +0100)
committerVincent Bernat <vbernat.ext@orange-ftgroup.com>
Fri, 27 Feb 2009 13:11:48 +0000 (14:11 +0100)
src/lldpd.c

index 4a7ab1b6b3f5d83f71fe2a461ab41941d92ab095..cfeb831782cf31cbd01b5726abc639c55365804d 100644 (file)
@@ -444,7 +444,7 @@ lldpd_cleanup(struct lldpd *cfg)
                if (hardware->h_flags == 0) {
                        TAILQ_REMOVE(&cfg->g_hardware, hardware, h_entries);
                        lldpd_iface_close(cfg, hardware);
-                       lldpd_remote_cleanup(cfg, hardware, 1);
+                       lldpd_remote_cleanup(cfg, hardware, 0);
                        lldpd_hardware_cleanup(hardware);
                } else if (hardware->h_rchassis != NULL) {
                        if (time(NULL) - hardware->h_rlastupdate >