diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2015-09-29 17:48:37 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2015-10-02 17:39:22 +0200 |
commit | 29eca2ff897dfbac65ef401515effb055da65339 (patch) | |
tree | 7ff8a046eece158560e6f8e87be54b271c0ac1d3 /src/libsystemd-network/test-lldp.c | |
parent | 0037c2dc54ca5bc5a3ec428619ff136066467565 (diff) |
lldp: fix parsing of TLV length
tlv_packet_read_bytes() and tlv_packet_read_string() returned the
wrong length when called after other functions which modify the offset
in the container.
In other words, if the TLV data length is X and we do a
tlv_packet_read_u8(), a subsequent tlv_packet_read_bytes() should
return a length of (X - 1).
Diffstat (limited to 'src/libsystemd-network/test-lldp.c')
0 files changed, 0 insertions, 0 deletions