]> git.ipfire.org Git - thirdparty/systemd.git/commit
dhcp6-client: handle IAID with value zero
authorThomas Haller <thaller@redhat.com>
Fri, 23 Nov 2018 12:42:13 +0000 (13:42 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Nov 2018 16:09:29 +0000 (17:09 +0100)
commit0e408b82b8bd7675234cf58009475d4f4c0a491a
tree9db12cef4f3359f619da6f5e69b39430310cafca
parentacf29327111921bf69e9f93e3280979581918fe2
dhcp6-client: handle IAID with value zero

config_parse_iaid(), dhcp_identifier_set_iaid() and sd_dhcp6_client_set_iaid() all
allow for the IAID to be zero. Also, RFC 3315 makes no mention that zero
would be invalid.

However, client_ensure_iaid() would take an IAID of zero as a sign that
the values was unset. Fix that by keeping track whether IAID is
initialized.
src/libsystemd-network/sd-dhcp6-client.c