From cd697ad19a8f77453d4349728bf3d7f22bb1cf94 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