diff options
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/test-dhcp6-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/test-dhcp6-client.c b/src/libsystemd-network/test-dhcp6-client.c index 96c68e1feb..259db33bcd 100644 --- a/src/libsystemd-network/test-dhcp6-client.c +++ b/src/libsystemd-network/test-dhcp6-client.c @@ -207,7 +207,7 @@ static int test_advertise_option(sd_event *e) { DHCP6Message *advertise = (DHCP6Message *)msg_advertise; uint8_t *optval, *opt = &msg_advertise[sizeof(DHCP6Message)]; uint16_t optcode; - size_t optlen, len = sizeof(msg_advertise); + size_t optlen, len = sizeof(msg_advertise) - sizeof(DHCP6Message); be32_t val; uint8_t preference = 255; struct in6_addr addr; |