]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp6-client: fix buffer size calculation in dhcp6_option_parse_ip6addrs()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Sep 2021 16:24:52 +0000 (01:24 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 29 Sep 2021 06:29:40 +0000 (15:29 +0900)
commitad3c84204c76e03a0b9b761563f6cd8907515014
treeb628e1fba2fb5ccfe07a9b5a941b86f088cc2a82
parent8a8955507af363c31297bbc5df79852db4ad39d6
sd-dhcp6-client: fix buffer size calculation in dhcp6_option_parse_ip6addrs()

GREEDY_REALLOC() takes number of elements, not buffer size.

This also rename dhcp6_option_parse_ip6addrs() to
dhcp6_option_parse_addresses().
src/libsystemd-network/dhcp6-internal.h
src/libsystemd-network/dhcp6-option.c
src/libsystemd-network/sd-dhcp6-lease.c