]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Fix EDP vlan handling when there is no VLAN
authorVincent Bernat <bernat@luffy.cx>
Sun, 24 May 2009 18:37:30 +0000 (20:37 +0200)
committerVincent Bernat <bernat@luffy.cx>
Wed, 30 Sep 2009 12:21:20 +0000 (14:21 +0200)
src/edp.c

index dd545a2d1eca31632162be7decfe913abd3e7939..c3f02fee291f9c01246942d164b14066cf2b382a 100644 (file)
--- a/src/edp.c
+++ b/src/edp.c
@@ -171,7 +171,7 @@ edp_send(struct lldpd *global, struct lldpd_chassis *chassis,
                        break;
                }
 
-               if ((state == 1) && (v == -1))  /* No VLAN, no need to send another TLV */
+               if ((state == 1) && (v == 0))   /* No VLAN, no need to send another TLV */
                        break;
 #endif