X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fdhcpv6-ia.c;h=c655d93c1911235c187615523997ea59a3bcb141;hp=5e34b5cf7430888dd77e51da288fa7f71d0dd38c;hb=749997650804f107ebb2f5ed6c91ed95b620b4dd;hpb=405b2e82dfeb95e3b90d35f8970efad85388949c diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index 5e34b5c..c655d93 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -1191,7 +1191,8 @@ ssize_t dhcpv6_handle_ia(uint8_t *buf, size_t buflen, struct interface *iface, response_len += ia_response_len; } - if (hdr->msg_type == DHCPV6_MSG_RELEASE && response_len + 6 < buflen) { + if ((hdr->msg_type == DHCPV6_MSG_RELEASE || hdr->msg_type == DHCPV6_MSG_DECLINE) && + response_len + 6 < buflen) { buf[0] = 0; buf[1] = DHCPV6_OPT_STATUS; buf[2] = 0;