From a9dd1010f0405e85e3b041ee983fcefca5e06895 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 26 Mar 2021 12:03:11 +0000 Subject: [PATCH] test-dhcp6-client: add one more assert on memory mapping Same as 7489d0640a4864d4b47fd8fda77f8eb7cf2e3fe8, one more case that was missed. Coverity CID #1394277 --- src/libsystemd-network/test-dhcp6-client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsystemd-network/test-dhcp6-client.c b/src/libsystemd-network/test-dhcp6-client.c index 42cd91e0be..96dc02a7e8 100644 --- a/src/libsystemd-network/test-dhcp6-client.c +++ b/src/libsystemd-network/test-dhcp6-client.c @@ -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,