X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdhcpv6.c;h=d2da0535bed59cc9f22d9642516d164a5d45f6d6;hb=920fda0ef9da478202fc330cc887e1ef3d703925;hp=e99195840f96ed5a7474f01f35dc288ba9c42f07;hpb=82e0235c10dda8b9baeb06b6383bec1f43bb61a2;p=odhcp6c.git diff --git a/src/dhcpv6.c b/src/dhcpv6.c index e991958..d2da053 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -647,6 +647,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 @@ -654,7 +655,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)