summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/sd-dhcp6-lease.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-02-06 05:38:08 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-02-14 06:43:45 +0100
commit4b0f27173c25ec21f1181ee3d438d413d4e4dd6c (patch)
treed8d01b37df085b77480c534d96d5add204a86b5e /src/libsystemd-network/sd-dhcp6-lease.c
parentsd-dhcp6-lease: reset client or server ID when length is zero (diff)
downloadsystemd-4b0f27173c25ec21f1181ee3d438d413d4e4dd6c.tar.xz
systemd-4b0f27173c25ec21f1181ee3d438d413d4e4dd6c.zip
sd-dhcp6-client: unify IA option header
This also fixes possible unaligned read of message.
Diffstat (limited to 'src/libsystemd-network/sd-dhcp6-lease.c')
-rw-r--r--src/libsystemd-network/sd-dhcp6-lease.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-lease.c b/src/libsystemd-network/sd-dhcp6-lease.c
index 7d6a6f7f9c..96c32cf8f9 100644
--- a/src/libsystemd-network/sd-dhcp6-lease.c
+++ b/src/libsystemd-network/sd-dhcp6-lease.c
@@ -45,7 +45,7 @@ int dhcp6_lease_ia_rebind_expire(const DHCP6IA *ia, uint32_t *expire) {
valid = t;
}
- t = be32toh(ia->ia_na.lifetime_t2);
+ t = be32toh(ia->header.lifetime_t2);
if (t > valid)
return -EINVAL;