]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCP6: Fix INFO_REFRESH_TIME option
authorRoy Marples <roy@marples.name>
Thu, 5 Sep 2024 13:22:53 +0000 (14:22 +0100)
committerRoy Marples <roy@marples.name>
Thu, 5 Sep 2024 13:22:53 +0000 (14:22 +0100)
Fixes #329 thanks to jvfranklin.

src/dhcp6.c

index bda0ee8d1eb0297161a462b1fe26fe09f0cf5725..61acd994baefe8ef1f7a2b35ae803c6fc9982a3f 100644 (file)
@@ -3119,7 +3119,7 @@ dhcp6_bind(struct interface *ifp, const char *op, const char *sfrom)
 
                if (state->reason == NULL)
                        state->reason = "INFORM6";
-               o = dhcp6_findmoption(state->new, state->new_len,
+               o = dhcp6_findmoption(state->recv, state->recv_len,
                                      D6_OPTION_INFO_REFRESH_TIME, &ol);
                if (o == NULL || ol != sizeof(uint32_t))
                        state->renew = IRT_DEFAULT;