From: Roy Marples Date: Thu, 5 Sep 2024 13:22:53 +0000 (+0100) Subject: DHCP6: Fix INFO_REFRESH_TIME option X-Git-Tag: v10.1.0~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f9648737c272018ad874308f9c61da2361cbd66;p=thirdparty%2Fdhcpcd.git DHCP6: Fix INFO_REFRESH_TIME option Fixes #329 thanks to jvfranklin. --- 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;