X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=blobdiff_plain;f=src%2Fdhcpv6.c;h=7e62a2b97cddf393020d202a6b24d3b5e48ba6bf;hp=013e215c6555d1a0f2ffa7cf794efb5f04799c73;hb=fa2696854e200258d266e8655b65259e9117a050;hpb=95ec756737ef80ce929de4bd63cc2291eb6497b2 diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 013e215..7e62a2b 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -648,6 +648,7 @@ static int dhcpv6_handle_reply(enum dhcpv6_msg orig, if (ia_hdr->iaid != 1 || l_t2 < l_t1) continue; + bool error = false; uint16_t stype, slen; uint8_t *sdata; // Test status and bail if error @@ -655,7 +656,10 @@ static int dhcpv6_handle_reply(enum dhcpv6_msg orig, stype, slen, sdata) if (stype == DHCPV6_OPT_STATUS && slen >= 2 && (sdata[0] || sdata[1])) - continue; + error = true; + + if (error) + continue; // Update times if (l_t1 > 0 && t1 > l_t1)