From: hecke Date: Fri, 23 Jun 2017 06:55:01 +0000 (+0200) Subject: add note that explains relaxed bytes-left check #6150 X-Git-Tag: v234~106^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6151%2Fhead;p=thirdparty%2Fsystemd.git add note that explains relaxed bytes-left check #6150 --- diff --git a/src/libsystemd-network/lldp-neighbor.c b/src/libsystemd-network/lldp-neighbor.c index 03f6628ab08..f1fecba6fa4 100644 --- a/src/libsystemd-network/lldp-neighbor.c +++ b/src/libsystemd-network/lldp-neighbor.c @@ -250,6 +250,9 @@ int lldp_neighbor_parse(sd_lldp_neighbor *n) { return -EBADMSG; } + /* Note that after processing the SD_LLDP_TYPE_END left could still be > 0 + * as the message may contain padding (see IEEE 802.1AB-2016, sec. 8.5.12) */ + goto end_marker; case SD_LLDP_TYPE_CHASSIS_ID: