accept LLDP messages containing padding

This commit is contained in:
hecke
2017-06-20 01:12:30 +02:00
parent b1e98c643c
commit bc652b81f6
-4
View File
@@ -249,10 +249,6 @@ int lldp_neighbor_parse(sd_lldp_neighbor *n) {
log_lldp("End marker TLV not zero-sized, ignoring datagram.");
return -EBADMSG;
}
if (left != 0) {
log_lldp("Trailing garbage in datagram, ignoring datagram.");
return -EBADMSG;
}
goto end_marker;