dhcp6: relax data assert in dhcp6_option_parse_string
authorRonan Pigott <ronan@rjp.ie>
Mon, 3 Jul 2023 20:02:47 +0000 (13:02 -0700)
committerRonan Pigott <ronan@rjp.ie>
Mon, 3 Jul 2023 20:07:29 +0000 (13:07 -0700)
commit46bc8561f0917a16f987126c7754f2bd383fa120
treef3c596d7fcf65546a59fbb769ad4cc105f3e316b
parentc470513eea6b6898e84f054894e90a40841ed7c6
dhcp6: relax data assert in dhcp6_option_parse_string

dhcp6_option_parse_string is intended to clear strings with length 0,
for consistency. The data assert is too strict for this purpose, so we
will allow data || data_len == 0, similar to other dhcp6_option_parse*
helpers.

Fixes: fde788601be8 ("dhcp6-client: parse RFC8910 captive portal dhcp6 option")
src/libsystemd-network/dhcp6-option.c