diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-09-18 22:14:45 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-09-21 23:07:00 +0200 |
commit | fab6f010ac6c3bc93a10868de722d7c8c3622eb9 (patch) | |
tree | 01e48e40fe5b73791a7675926f342b9e5daa594e /src | |
parent | f2d9af4322f74832d93e101abfcc1b3adf0e05c6 (diff) | |
download | systemd-243.2.tar.gz |
dhcp6: use unaligned_read_be32()v243.2
Closes #13591.
(cherry picked from commit 0eb5e6d3f08c6b3a41cfa7ac02bcc6302259ed4a)
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-network/sd-dhcp6-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index 5a3b0a6353..9773a067d5 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -1005,7 +1005,7 @@ static int client_parse_message( if (optlen != 4) return -EINVAL; - irt = be32toh(*(be32_t *) optval) * USEC_PER_SEC; + irt = unaligned_read_be32((be32_t *) optval) * USEC_PER_SEC; break; } |