From 4f9648737c272018ad874308f9c61da2361cbd66 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 5 Sep 2024 14:22:53 +0100 Subject: [PATCH] DHCP6: Fix INFO_REFRESH_TIME option Fixes #329 thanks to jvfranklin. --- src/dhcp6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dhcp6.c b/src/dhcp6.c index bda0ee8d..61acd994 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -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;