From 7c11435e7fb840e56f9930fff04b314aa17711f4 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 24 May 2009 20:37:30 +0200 Subject: [PATCH] Fix EDP vlan handling when there is no VLAN --- src/edp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edp.c b/src/edp.c index dd545a2d..c3f02fee 100644 --- 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 -- 2.39.5