From: Vincent Bernat Date: Sun, 24 May 2009 18:37:30 +0000 (+0200) Subject: Fix EDP vlan handling when there is no VLAN X-Git-Tag: 0.4.1~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd697ad19a8f77453d4349728bf3d7f22bb1cf94;p=thirdparty%2Flldpd.git Fix EDP vlan handling when there is no VLAN --- 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