]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - src/daemon/protocols/lldp.c
lldp: don't discard the whole LLDPDU when only one TLV is invalid
[thirdparty/lldpd.git] / src / daemon / protocols / lldp.c
index 2609d6d4c117ac9a59da1de305c30cc7c04c6e6a..a670503813e1c204e716d415d59de50368e0d1a8 100644 (file)
@@ -1253,7 +1253,7 @@ lldp_decode(struct lldpd *cfg, char *frame, int s,
                        log_warnx("lldp", "unknown tlv (%d) received on %s",
                            tlv_type, hardware->h_ifname);
                        hardware->h_rx_unrecognized_cnt++;
-                       goto malformed;
+                       break;
                }
                if (pos > tlv + tlv_size) {
                        log_warnx("lldp", "BUG: already past TLV!");