1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-10 01:17:44 +03:00

test-dhcp6-client: add one more assert on memory mapping

Same as 7489d0640a, one more case
that was missed.

Coverity CID #1394277
This commit is contained in:
Luca Boccassi 2021-03-26 12:03:11 +00:00 committed by Zbigniew Jędrzejewski-Szmek
parent 008adf875e
commit a9dd1010f0

View File

@ -467,6 +467,7 @@ static int test_advertise_option(sd_event *e) {
case SD_DHCP6_OPTION_SERVERID:
assert_se(optlen == 14);
assert_se(optval == &msg_advertise[179]);
assert_se(!memcmp(optval, &msg_advertise[179], optlen));
assert_se(dhcp6_lease_set_serverid(lease, optval,