]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix IA
authorRoy Marples <roy@marples.name>
Mon, 1 Apr 2013 12:24:39 +0000 (12:24 +0000)
committerRoy Marples <roy@marples.name>
Mon, 1 Apr 2013 12:24:39 +0000 (12:24 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 5d0df8e932c074f2ac1c01c1e92ac3a7d15a2751..32ce216bc93b6494c72b52cfea08f3f2ed996e00 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -1131,7 +1131,7 @@ dhcp6_findia(struct interface *ifp, const uint8_t *d, size_t l,
                memcpy(iaid, p, sizeof(iaid));
                p += sizeof(iaid);
                ol -= sizeof(iaid);
-               if (ifo->ia_type == D6_OPTION_IA_NA) {
+               if (ifo->ia_type != D6_OPTION_IA_TA) {
                        memcpy(&u32, p, sizeof(u32));
                        renew = ntohl(u32);
                        p += sizeof(u32);