[PATCH 2/2] udhcpc6: ignore invalid OPTION_IAADDR
Baruch Siach
baruch at tkos.co.il
Thu May 24 15:58:40 UTC 2018
Hi David,
On Thu, May 24, 2018 at 08:30:16AM -0700, David Decotigny wrote:
> Ref: http://go/rfc/3315#section-22.6
This URL doesn't work here. Is is kind of Google internal thing?
baruch
> Signed-off-by: David Decotigny <ddecotig at gmail.com>
> ---
> networking/udhcp/d6_dhcpc.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
> index 39b0501ad..c6276f97b 100644
> --- a/networking/udhcp/d6_dhcpc.c
> +++ b/networking/udhcp/d6_dhcpc.c
> @@ -288,6 +288,10 @@ static void option_to_env(const uint8_t *option, const uint8_t *option_end)
> * | valid-lifetime |
> * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> */
> + /* Make sure payload contains an address */
> + if (option[3] < 24)
> + break;
> +
> sprint_nip6(ipv6str, option + 4);
> *new_env() = xasprintf("ipv6=%s", ipv6str);
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
More information about the busybox
mailing list