]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-lldp: use `memcmp` to compare bytes (#8054)
authorEvgeny Vereshchagin <evvers@ya.ru>
Wed, 31 Jan 2018 08:54:37 +0000 (11:54 +0300)
committerLennart Poettering <lennart@poettering.net>
Wed, 31 Jan 2018 08:54:37 +0000 (09:54 +0100)
commitce691f31aafe4492011aa94600453ce69662b910
tree09459ad259fc926d3cbf2d104651e3d29fe7fecf
parent302af1c250c2c64f608187ab1efb8e4f1f442951
test-lldp: use `memcmp` to compare bytes (#8054)

Technically, `data` is a sequence of bytes without a trailing zero,
so the use of `memcmp` seems to be logical here. Besides, this helps get
around a bug that makes `asan` report the false positive mentioned in
 #8052.

Closes #8052.
src/libsystemd-network/test-lldp.c