dhcpv6-ia : Fix static DHCPv6 assignments becoming non static
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 1 Dec 2016 13:24:24 +0000 (14:24 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 1 Dec 2016 13:26:36 +0000 (14:26 +0100)
commit41b52688403016017eca812315a7206b6d27c097
tree8775658bab8e95e946dfce3cb3dd312af805275b
parentbe6c5159a46bf2fb813456e53f217a415743ed4c
dhcpv6-ia : Fix static DHCPv6 assignments becoming non static

The valid_until parameter which is set to 0 for static DHCPv6
assignments was overwritten depending on the received DHCPv6 message
which turned the assignment into having a finite lifetime and thus not
static anymore.
Fix this by checking if the valid_until parameter holds infinite
lifetime before updating it.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv6-ia.c